User`s guide

Specifying the Trigger Type
6-15
Hardware Trigger
The following example illustrates how to use a hardware trigger:
1
Create an image acquisition object — This example creates a video input object
for a Matrox image acquisition device. To run this 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. The device must support hardware
triggers.
vid = videoinput('matrox',1);
2
Determine valid trigger property configurations — Use the triggerinfo
function to determine if your image acquisition device supports hardware
triggers, and if it does, to find out valid configurations of the TriggerSource and
TriggerCondition properties. See “Determining Valid Configurations” on page 6-6
for more information.
In this example, triggerinfo returns the following valid trigger configurations.
triggerinfo(vid)
Valid Trigger Configurations:
TriggerType: TriggerCondition: TriggerSource:
'immediate' 'none' 'none'
'manual' 'none' 'none'