DAQmxCfgDigPatternStartTrig
int32 DAQmxCfgDigPatternStartTrig (TaskHandle taskHandle, const char triggerSource[], const char triggerPattern[], int32 triggerWhen);
Purpose
Configures a task to start acquiring or generating samples when a digital pattern is matched.
Parameters
Input
|
Name |
Type |
Description |
taskHandle
|
TaskHandle |
The task used in this function. |
triggerSource
|
const char []
|
Specifies the physical channels to use for pattern matching. The order of the physical channels determines the order of the pattern. If a port is included, the order of the physical channels within the port is in ascending order. |
triggerPattern
|
const char []
|
Specifies the digital pattern that must be met for the trigger to occur. |
triggerWhen
|
int32
|
Specifies the conditions under which the trigger occurs.
Value |
|
Description |
DAQmx_Val_PatternMatches
|
|
Pattern matches |
DAQmx_Val_PatternDoesNotMatch
|
|
Pattern does not match |
|
Return Value
Name |
Type |
Description |
status
|
int32 |
The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error. |