| Data Acquisition Toolbox™ | ![]() |
TriggerChannel specifies the channel serving as the trigger source. The trigger channel must be specified before the trigger type. You might need to configure the TriggerCondition and TriggerConditionValue properties in conjunction with TriggerChannel.
For all supported vendors, if TriggerType is Software, then you must acquire data from the channel being used for the trigger source. For National Instruments hardware, if TriggerType is HwAnalogChannel, then TriggerChannel must be the first element of the channel group. The exception is if you are using simultaneous acquisition devices such as the S-series boards, with which you can specify any channel for the TriggerChannel value.
Usage | AI, Common to all channels |
Access | Read/write |
Data type | Vector of channels |
Read-only when running | Yes |
The default value is an empty vector.
Create the analog input object ai, add two channels, and define the trigger source as channel 2.
ai = analoginput('winsound');
ch = addchannel(ai,1:2);
set(ai,'TriggerChannel',ch(2))
set(ai,'TriggerType','Software')TriggerCondition, TriggerConditionValue, TriggerType
![]() | TimerPeriod | TriggerCondition | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |