Data Acquisition Toolbox    
TriggerChannel

Specify the channel serving as the 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 the PCI-6110 or PCI-6111 board. In this case, you can specify any channel for the TriggerChannel value.

Characteristics

Usage
AI, Common
Access
Read/write
Data type
Vector of channels
Read-only when running
Yes

Values

The default value is an empty vector.

Example

Create the analog input object ai, add two channels, and define the trigger source as channel 2.

See Also

Properties

TriggerCondition, TriggerConditionValue, TriggerType


  TriggerFcn TriggerCondition