NI-DAQmx .NET Framework 4.0 API Reference

PauseTrigger.ConfigureDigitalPatternTrigger Method

  • Updated2023-02-21
  • 1 minute(s) read
PauseTrigger.ConfigureDigitalPatternTrigger Method
Configures a task to pause the acquisition or generation when the device matches a digital pattern.

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

Syntax

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

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.DAQmxDigitalPatternPauseTriggerCondition
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, DigitalPatternPauseTriggerCondition) 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. You start the task with Start, by reading from or writing to the task, or by calling Control(TaskAction) with Verify.

See Also

Log in to get a better experience