GxCntGetTotalizeGateMode

Purpose

Returns the Totalize Gate mode.

Syntax

GxCntGetTotalizeGateMode  (nHandle, pnMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
pnMode
PSHORT
Returns Gate mode:
  • 0 = GXCNT_TOTALIZE_GATE_OPEN: open the count Gate.
  • 1 = GXCNT_TOTALIZE_GATE_CLOSE: close the count Gate.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function enables or disables the count Gate when in Totalize mode.

Example

The following example returns the Totalize Gate mode:

 

SHORT nHandle, nMode, nStatus;

GxCntGetTotalizeGateMode (nHandle, &nMode, &nStatus)

 

See Also

GxCntSetTotalizeGateMode, GxCntGetFunction, GxCntGetErrorString