User`s guide
Specifying the Trigger Type
Example: Using a
n Immediate Trigger
To use an immedia
te trigger, simply create a video input o bj ect. Imm ed iate
triggering is th
e default trigger type for all video input objects. With an
immediate trigg
er, the object e xe cute s the trigger immediately after you start
the object runn
ing with the
start command. The following figure illustrates
an immediate tr
igger.
Immediate Trigger
The following exam ple illustrates how to use an immediate trigger:
1 Create an im age acquisition object — Th i s example creates a video
input o bj ect for a M atrox ima ge acquisition device. To run th is example on
your system, use the
imaqhwinfo function to get the object constructor for
your image acquisition device and substitute that syntax for the following
code.
vid = videoinput('mat rox',1);
5-11