User`s guide
5 Acqu iring Image Data
Setting the Values of Trigger Properties
In this section.. .
“About Trigger Properties” on page 5-6
“Specifying Trigger Type, S ource, and Condition” on page 5-6
About Trigger Properties
Most trigger properties can be set using the same m ethods you use to set any
other image acquisition object property: using the
set function or referencing
the property as you would a field in a structure. For example, you can use the
set function to specify the value of the Trigg erRe peat property, w here vid is
a video input object created using the
videoinput function.
set(vid,'TriggerRepeat',Inf)
For more information, see “Configuring Image Acquisition Object Properties”
on page 4-17.
Some trigger properties, how ever, are interrelated and require the use of
the
triggerconfig function to set their values. These properties are the
TriggerType, TriggerCondition,andTriggerSource properties. For
example, some
TriggerCondition values are only v alid when the value of the
TriggerType property is 'hardware'.
Specifying Trigger Type, Source, and Condition
Setting the values of the Trigg erTy pe, Trig gerSource,and
TriggerCondition properties can be a two-step process :
1 Determine valid configurations of these properties by calling the
triggerinfo function.
2 Set the values of these p ropertie s by calling the trigge rconfig function.
For an example of using these functions, see “Example: Using a Hardware
Trigger” on page 5-16.
5-6