Sets the Gate time.
GxCntSetGateTime (nHandle, dSeconds, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
dSeconds |
DOUBLE |
Gate time in seconds, Gate time range is 250S to 3200 seconds with a resolution of 0.75S |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
For Frequency, Period, Ratio and GxCntSetFunctionTestInternalClock functions, the selected Gate time sets the minimum measurement interval. It is ignored by all other functions.
The following example sets the gate time to 1mS:
SHORT nHandle, nStatus;
GxCntSetGateTime (nHandle, 0.001, &nStatus)
GxCntGetGateTime, GxCntSetAcquisitionTimeInterval, GxCntGetAcquisitionTimeInterval, GxCntSetAcquisitionMode, GxCntGetAcquisitionMode, GxCntGetErrorString