Sets the function mode to Time Interval with Delay
GxCntSetFunctionTimeIntervalDelay (nHandle, nMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
nMode |
SHORT |
Measurement Mode:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Time Interval is defined as the elapsed time between an event on the start input channel and an event on the stop input channel. Event is defined either a positive or negative transition of the input signal (using GxCntSetChannelSlope). A time interval with delay measurement begins like a standard measurement except that the stop event is disabled. As soon as the start event is recognized, the programmed delay begins. When the delay interval elapses, completion is enabled and the next stop event terminates the measurement. The delay interval can be specified using GxCntSetTimeIntervalDelay function.
The GC2200/GTX2200 allows Time Interval measurements to be start armed for maximum flexibility.
Note: Using the Time Interval with Delay the stop arm event is not available.
The following example sets the function mode to time interval with delay measure channel A to channel B:
SHORT nHandle, nStatus;
GxCntSetFunctionTimeIntervalDelay (nHandle, GXCNT_MEASURE_A_TO_B, &nStatus);
GxCntSetTimeIntervalDelay, GxCntSetFunctionTimeInterval, GxCntSetArmSource, GxCntSetArmSlope, GxCntGetErrorString