User`s guide

Specifying the Trigger Type
6-11
TriggerType: 'immediate'
TriggerCondition: 'none'
TriggerSource: 'none'
This example sets the value of the FramesPerTrigger property to 5. (The default is
10 frames per trigger.)
vid.FramesPerTrigger = 5
3
Start the image acquisition object — Call the start function to start the image
acquisition object. By default, the object executes an immediate trigger and acquires
five frames of data, logging the data to a memory buffer. After logging the specified
number of frames, the object stops running.
start(vid)
To verify that the object acquired data, view the value of the FramesAcquired
property. The object updates the value of this property as it acquires data.
vid.FramesAcquired
ans =
5
To execute another immediate trigger, you must restart the object. Note, however,
that this deletes the data acquired by the first trigger. To execute multiple
immediate triggers, specify a value for the TriggerRepeat property. See
“Specifying Multiple Triggers” on page 6-32 for more information.
4
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
Using a Manual Trigger
To use a manual trigger, create a video input object and set the value of the
TriggerType property to 'manual'. A video input object executes a manual trigger
after you issue the trigger function. The following figure illustrates a manual trigger.