Documentation

TriggerChannel

Specify channel serving as trigger source

Description

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.

Characteristics

Usage

AI, common to all channels

Access

Read/write

Data type

Vector or scalar

Read-only when running

Yes

Values

The data type can be either vector or scalar, representing one channel. The default value is an empty vector.

Examples

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);
ai.TriggerChannel = ch(2)
ai.TriggerType = 'Software'
Was this topic helpful?