GxCntSetGateTime

Purpose

Sets the Gate time.

Syntax

GxCntSetGateTime  (nHandle, dSeconds, pnStatus)

Parameters

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.

Comments

For Frequency, Period, Ratio and GxCntSetFunctionTestInternalClock functions, the selected Gate time sets the minimum measurement interval. It is ignored by all other functions.

Example

The following example sets the gate time to 1mS:

 

SHORT nHandle, nStatus;

GxCntSetGateTime (nHandle, 0.001, &nStatus)

 

See Also

GxCntGetGateTime, GxCntSetAcquisitionTimeInterval, GxCntGetAcquisitionTimeInterval, GxCntSetAcquisitionMode, GxCntGetAcquisitionMode, GxCntGetErrorString