NI-DAQmx .NET Framework 4.5 API Reference

StartTrigger.ConfigureDigitalPatternTrigger Method

  • Updated2023-02-21
  • 1 minute(s) read
StartTrigger.ConfigureDigitalPatternTrigger Method
Configures the task to start acquiring or generating samples when a digital pattern is matched.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.45.49302

Syntax

public void ConfigureDigitalPatternTrigger(
	string source,
	string pattern,
	DigitalPatternStartTriggerCondition condition
)
Public Sub ConfigureDigitalPatternTrigger ( 
	source As String,
	pattern As String,
	condition As DigitalPatternStartTriggerCondition
)

Parameters

source
Type: SystemString
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
Type: SystemString
The digital pattern that must be met for the trigger to occur.
condition
Type: NationalInstruments.DAQmxDigitalPatternStartTriggerCondition
The condition under which the trigger occurs.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

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.

See Also

Log in to get a better experience