User`s guide
Specifying the Trigger Type
To execute anothe r immediate trigger, you must restart the object. Note,
however, that this deletes the data acquired by the first trigger. To execute
multip le immed iate triggers, sp ecify a val ue for th e
TriggerRepeat
property. See “Specifying Multiple Triggers” on page 5-29 for more
information.
4 Clean up — Always rem ove image acquisition objects from mem ory, and
the variables that re ference them, when you n o longer need them.
delete(vid)
clear vid
Example: 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 v ideo input object executes a manual
trigger after you issue the
trigger function. The following figure illustrates a
manual trigger.
Manual T
rigger
The foll
owing example illustrates how to use a manual trigger:
1 Create a
n image acquisition o bject — This exa mple cre ates a video
input ob
ject for a webcam image acquisition device. To run this example on
your sys
tem, use the
imaqhwinfo function to get the object constructor for
5-13