ConfigureDigitalPatternTrigger(string, string, DigitalPatternStartTriggerCondition)
- Updated2026-02-03
- 1 minute(s) read
Configures the task to start acquiring or generating samples when a digital pattern is matched.
Syntax
Namespace: NationalInstruments.DAQmx
public void ConfigureDigitalPatternTrigger(string source, string pattern, DigitalPatternStartTriggerCondition condition)
Remarks
The NI-DAQmx driver does not determine if the requested settings are possible until the task is verified. ConfigureDigitalPatternTrigger(string, string, DigitalPatternStartTriggerCondition) does not throw an exception for parameter values that are not compatible with your hardware or other settings in your task. To determine if all of the settings for a Task are valid, you must verify the task by starting the task, either with Start or by reading from or writing to the task, or by calling Control(TaskAction) with Verify.
Parameters
| Name | Type | Description |
|---|---|---|
| source | string | 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. |
| pattern | string | The digital pattern that must be met for the trigger to occur. |
| condition | DigitalPatternStartTriggerCondition | The condition under which the trigger occurs. |
Exceptions
| Type | Description |
|---|---|
| NationalInstruments.DAQmx.DaqException | The NI-DAQmx driver returned an error. |