User`s guide
17 Functions — Alphabetical List
17-90
names of config are TriggerType, TriggerCondition, and TriggerSource. Each
field contains the current value of the object's property.
triggerconfig(obj,config) configures the TriggerType, TriggerCondition, and
TriggerSource property values for video input object obj using config, a MATLAB
structure with field names TriggerType, TriggerCondition, and TriggerSource,
each containing the desired property value.
Examples
Example 1
Construct a video input object.
vid = videoinput('winvideo', 1);
Configure trigger properties for the object.
triggerconfig(vid, 'manual')
Trigger the acquisition.
start(vid)
trigger(vid)
Remove video input object from memory.
delete(vid);
Example 2
This example uses a structure returned from triggerinfo to configure trigger
parameters.
Create a video input object.
vid = videoinput('winvideo', 1);
Use triggerinfo to get all valid configurations for the trigger properties for the object.
config = triggerinfo(vid);