User`s guide

Setting the Values of Trigger Properties
6-7
config = triggerinfo(vid);
This function returns an array 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. For example, the structure returned for an
immediate trigger always has these values:
TriggerType: 'immediate'
TriggerCondition: 'none'
TriggerSource: 'none'
A device that supports hardware configurations might return the following structure.
TriggerType: 'hardware'
TriggerCondition: 'risingEdge'
TriggerSource: 'TTL'
Note The text strings used as the values of the TriggerCondition and
TriggerSource properties are device specific. Your device, if it supports hardware
triggers, might support different condition and source values.
Configuring Trigger Type, Source, and Condition Properties
To set the values of the TriggerType, TriggerSource, and TriggerCondition
properties, you must use the triggerconfig function. You specify the value of the
property as an argument to the function.
For example, this code sets the values of these properties for a hardware trigger.
triggerconfig(vid,'hardware','risingEdge','TTL')
If you are specifying a manual trigger, you only need to specify the trigger type value as
an argument.
triggerconfig(vid,'manual')
You can also pass one of the structures returned by the triggerinfo function to the
triggerconfig function and set all three properties at once.
triggerconfig(vid, config(1))
See the triggerconfig function documentation for more information.