| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Image Acquisition Toolbox |
| Contents | Index |
| Learn more about Image Acquisition Toolbox |
triggerinfo(obj)
triggerinfo(obj,type)
config = triggerinfo(...)
triggerinfo(obj) displays all available trigger configurations for the video input object obj. obj can only be a 1-by-1 video input object.
triggerinfo(obj,type) displays the available trigger configurations for the specified TriggerType, type, for the video input object obj. To get a list of valid type values for a particular image acquisition object, use triggerinfo(obj).
config = triggerinfo(...) returns config, an array of MATLAB structures, containing all the valid trigger configurations for the video input object obj. Each structure in the array contains these fields:
Field | Description |
|---|---|
TriggerType | Name of the trigger type |
TriggerCondition | Condition that must be met before executing a trigger |
TriggerSource | Hardware source used for triggering |
You can pass one of the structures in config to the triggerconfig function to specify the trigger configuration.
This example illustrates how to use the triggerinfo function to retrieve valid configurations of the TriggerType, TriggerSource, and TriggerCondition properties.
vid = videoinput('winvideo');Get information about the available trigger configurations for this object.
config = triggerinfo(vid)
config =
1x2 struct array with fields:
TriggerType
TriggerCondition
TriggerSourceView one of the trigger configurations returned by triggerinfo.
config(1)
ans =
TriggerType: 'immediate'
TriggerCondition: 'none'
TriggerSource: 'none'![]() | triggerconfig | videoinput | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |