Sets the function mode to Time Interval.
GxCntSet (nHandle, 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 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).
The GC2200/GTX2200 allows Time Interval measurements to be both start armed and stop armed for maximum flexibility.
The following example sets the function mode to Test Interval measure channel A to channel B:
SHORT nHandle, nStatus;
GxCntSetFunctionTimeInterval (nHandle, GXCNT_MEASURE_A_TO_B, &nStatus)
GxCntSetFunctionTimeIntervalDelay, GxCntSetArmSource, GxCntSetArmSlope, GxCntGetErrorString