GxCntlClear

Purpose

Clear the counter buffers and start new measurement.

Syntax

GxCntClear (nHandle, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Clears the output data buffer, the count in Totalize and Accumulate modes, and clears the errors and starts a new measurement. The counter’s setup does not is not change.

Example

The following example clears the counter:

 

SHORT nHandle, nStatus;

GxCntClear (nHandle, &nStatus);

 

See Also

GxCntSetFunctionAccumulate, GxCntSetFunctionTotalize, GxCntReset, GxCntGetErrorString