GxCntSetTotalizeGateMode

Purpose

Sets the Totalize Gate mode.

Syntax

GxCntSetTotalizeGateMode (nHandle, nMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nMode
SHORT
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 sets the Totalize Gate mode to start:

 

SHORT nHandle, nStatus;

GxCntSetTotalizeGateMode (nHandle, GXCNT_TOTALIZE_GATE_OPEN, &nStatus)

 

See Also

GxCntGetTotalizeGateMode, GxCntGetFunction, GxCntGetErrorString