User`s guide
Specifying the Trigger Type
6-17
vid.FramesAcquired
ans =
5
After it executes the trigger and acquires the specified number of frames, the video
input object stops running.
isrunning(vid)
ans =
0
To execute another hardware trigger, you must first restart the video input object.
Note that this deletes the frames acquired by the first trigger. To execute multiple
triggers, specify a value for the TriggerRepeat property. See “Specifying Multiple
Triggers” on page 6-32 for more information.
5
Clean up — Always remove image acquisition objects from memory, and the
variables that reference them, when you no longer need them.
delete(vid)
clear vid
Setting DCAM-Specific Trigger Modes
You can now use all trigger modes and all trigger inputs that DCAM cameras support.
Previous toolbox releases supported only trigger mode 0. Support for additional trigger
modes and inputs do not affect any existing code you use.
Control trigger functionality using the triggerinfo and triggerconfig functions
and the triggersource property. Before R2010a, one triggersource was available,
externalTrigger. Selecting externalTrigger configures the camera to use trigger
mode 0 with trigger source 0.
The triggersource property is now composed of the trigger type (internal or external),
the trigger source (0, 1, 2, etc.), and the mode number (0 through 5, 14 and 15). The
following table summarizes the options.
Trigger Mode Parameter External Source Multiple Frames Per Trigger
0 none yes yes