CalCounterSetGateTime

Purpose

Sets the Gate time.

Syntax

CalCounterSetGateTime (hHandle, nChannel, dSeconds, plStatus)

Parameters

Name
Type
Comments
hHandle
LONG
Handle for a Counter.
nChannel
SHORT
Select channel (0-based).
dSeconds
DOUBLE
Gate time in seconds.
plStatus
PLONG
Returned status: 0 on success, negative number on failure.

Comments

The gate time sets the minimum measurement interval.

Example

The following example sets channel 0’s gate time to 0.3 Sec:

 

LONG   lHandle, lStatus;

 

CalCounterSetGateTime (lHandle, 0, 0.3, &lStatus);

 

See Also

CalCounterMeasure, CalCounterSetFunctionPulseWidth, CalCounterSetTriggerLevel, CalCounterGetError