DAQmxCfgDigPatternStartTrig
From NI-DAQmx C Functions
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 |
|
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 |
|
Specifies the digital pattern that must be met for the trigger to occur. | |||||||||
| triggerWhen |
|
Specifies the conditions under which the trigger occurs.
|
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. |