NI-DAQmx .NET Framework 4.5 API Reference

Table of Contents

ReferenceTrigger.ConfigureDigitalPatternTrigger Method

  • Updated2023-02-21
  • 2 minute(s) read
ReferenceTrigger.ConfigureDigitalPatternTrigger Method
Configures a task to stop the acquisition when the device acquires all pretrigger samples, matches a digital pattern, and acquires all posttrigger samples.

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

Syntax

public void ConfigureDigitalPatternTrigger(
	string source,
	string pattern,
	DigitalPatternReferenceTriggerCondition condition,
	long pretriggerSamples
)
Public Sub ConfigureDigitalPatternTrigger ( 
	source As String,
	pattern As String,
	condition As DigitalPatternReferenceTriggerCondition,
	pretriggerSamples As Long
)

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.DAQmxDigitalPatternReferenceTriggerCondition
The condition under which the trigger occurs.
pretriggerSamples
Type: SystemInt64
The minimum number of samples to acquire per channel before recognizing the reference trigger.

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, DigitalPatternReferenceTriggerCondition, Int64) 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