NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

StartTrigger.ConfigureAnalogEdgeTrigger Method

  • Updated2023-02-21
  • 2 minute(s) read
StartTrigger.ConfigureAnalogEdgeTrigger Method
Configures the task to start acquiring or generating samples when an analog signal crosses the level you specify.

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

Syntax

public void ConfigureAnalogEdgeTrigger(
	string source,
	AnalogEdgeStartTriggerSlope slope,
	double level
)
Public Sub ConfigureAnalogEdgeTrigger ( 
	source As String,
	slope As AnalogEdgeStartTriggerSlope,
	level As Double
)

Parameters

source
Type: SystemString
The name of a virtual channel or terminal where there is a digital signal to use as the source of the trigger. For E Series devices, if you use a channel name, the channel must be the first channel in the task. The only terminal you can use for E Series devices is PFI0.
slope
Type: NationalInstruments.DAQmxAnalogEdgeStartTriggerSlope
The slope of the signal to start acquiring or generating samples when the signal crosses level.
level
Type: SystemDouble
The threshold to start acquiring or generating samples, in the units of the measurement or generation. Use slope to specify on which slope to trigger at this threshold.

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. ConfigureAnalogEdgeTrigger(String, AnalogEdgeStartTriggerSlope, Double) 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