DAQmxCfgAnlgEdgeStartTrig
int32 DAQmxCfgAnlgEdgeStartTrig (TaskHandle taskHandle, const char
triggerSource[], int32 triggerSlope, float64 triggerLevel);
Purpose
Configures the task to start acquiring or generating samples when an analog signal crosses the level you specify.
Parameters
Input
|
Name |
Type |
Description |
taskHandle
|
TaskHandle |
The task used in this function. |
triggerSource
|
const char []
|
The name of a 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 channel name, the channel must be the first channel in the task. The only terminal you can use for E Series devices is PFI0. |
triggerSlope
|
int32 |
Specifies on which slope of the signal to start acquiring or generating samples when the signal crosses triggerLevel.
Value |
|
Description |
DAQmx_Val_RisingSlope
|
|
Trigger on the rising slope of the signal. |
DAQmx_Val_FallingSlope
|
|
Trigger on the falling slope of the signal. |
|
triggerLevel
|
float64 |
The threshold at which to start acquiring or generating samples. Specify this value in the units of the measurement or generation. Use triggerSlope to specify on which slope to trigger at this threshold. |
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. |