User`s guide
Setting the Va lues of Trigger Proper ties
Determining Valid Configurations
To find all the valid configurations of the TriggerType, TriggerSource,and
TriggerCondition properties, use the triggerinf o function, specifying a
video input object as an argument.
config = triggerinfo( vid);
This function returns an a rray of structures, one structure for each valid
combination of property values. Each structure in the array is made up of
three fields that contain the values of each of these trigger properties. Fo r
example, the structure returned for an immediate trigger always has these
values:
TriggerType: 'immed iate '
TriggerCondition: 'none'
TriggerSource: 'no ne'
A device that supports hardware configurations might return the following
structure.
TriggerType: 'hardw are'
TriggerCondition: 'risingEdge'
TriggerSource: 'TT L'
Note The text strings used as the values of the TriggerCondition and
TriggerSource properties are device specific. Yo ur device, if it supports
hardware triggers, might support differen t condition and source values.
Configuring Trigger Type, Source, and Condition Properties
To set the values of the Tr iggerType, TriggerSource,andTriggerCondition
properties, you must use the trig gerconfig function. You specify the value
of the property as a n argument to the function.
For example, this code sets the values of these properties for a hardware
trigger.
triggerconfig(vid,'hardware','ris ingEdge','TTL')
5-7