DAQmxCfgAnlgWindowStartTrig

NI-DAQmx C Functions

DAQmxCfgAnlgWindowStartTrig

int32 DAQmxCfgAnlgWindowStartTrig (TaskHandle taskHandle, const char triggerSource[], int32 triggerWhen, float64 windowTop, float64 windowBottom);

Purpose

Configures the task to start acquiring or generating samples when an analog signal enters or leaves a range you specify.

Parameters

Input
Name Type Description
taskHandle TaskHandle The task used in this function.
triggerSource const char [] The name of a virtual channel or terminal where there is an analog signal to use as the source of the trigger.
For E Series devices, if you use a virtual channel, it must be the first channel in the task. The only terminal you can use for E Series devices is PFI0.
triggerWhen int32 Specifies whether the task starts measuring or generating samples when the signal enters the window or when it leaves the window. Use windowBottom and windowTop to specify the limits of the window.
Value Description
DAQmx_Val_EnteringWin Trigger when the signal enters the window.
DAQmx_Val_LeavingWin Trigger when the signal leaves the window.
windowTop float64 The upper limit of the window. Specify this value in the units of the measurement or generation.
windowBottom float64 The lower limit of the window. Specify this value in the units of the measurement or generation.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.