NI-DAQmx .NET Framework 4.5 API Reference

Table of Contents

ReferenceTrigger.ConfigureAnalogMultiEdgeTrigger Method

  • Updated2023-02-21
  • 2 minute(s) read
ReferenceTrigger.ConfigureAnalogMultiEdgeTrigger Method
Configures the task to stop the acquisition when the device acquires all pretrigger samples, any of the configured analog signals reaches the levels you specify, and the device acquires all post-trigger samples.

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

Syntax

public void ConfigureAnalogMultiEdgeTrigger(
	string sources,
	AnalogMultiEdgeReferenceTriggerSlope[] slopes,
	double[] levels,
	long pretriggerSamples
)
Public Sub ConfigureAnalogMultiEdgeTrigger ( 
	sources As String,
	slopes As AnalogMultiEdgeReferenceTriggerSlope(),
	levels As Double(),
	pretriggerSamples As Long
)

Parameters

sources
Type: SystemString
A string specifying a list of terminals, physical channel names, or ranges of physical channels where there are analog signals to use as the sources of the trigger.
slopes
Type: NationalInstruments.DAQmxAnalogMultiEdgeReferenceTriggerSlope
An array containing the slopes of the signals to start acquiring or generating samples when the respective signal crosses the respective trigger level. Each element corresponds to the sources specified in sources and elements in the other array parameters.
levels
Type: SystemDouble
An array containing the thresholds at which to start acquiring or generating samples. Each element corresponds to the sources specified in sources and elements in the other array parameters. Specify these values in the units of the measurement or generation. Use slopes to specify on which slopes to trigger at the respective thresholds.
pretriggerSamples
Type: SystemInt64
The minimum number of samples per channel to acquire before recognizing the reference trigger. The number of posttrigger samples per channel is equal to SamplesPerChannel minus pretriggerSamples.

Exceptions

ExceptionCondition
DaqException The NI-DAQmx driver returned an error.

Remarks

When you use a ReferenceTrigger, the default for ReadRelativeTo is FirstPretriggerSample with a ReadOffset of 0. Multi-edge triggering treats the specified triggers as if they are logically ORed.

The number of trigger sources represented by sources and the number of elements in slopes and levels must all be the same.

See Also

Log in to get a better experience