GxCntGetArmSource

Purpose

Returns Arm source.

Syntax

GxCntGetArmSource (nHandle, pnSource, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
pnSource
PSHORT
Returned Arm source:
  • 0 = GXCNT_ARM_INTERNAL: Arming measurements are done internally according to Acquisition mode.
  • 1 = GXCNT_ARM_EXTERNAL: The External Arm Input connector
  • 2 = GXCNT_ARM_ALTERNATE: The Alternate input channel (only for single channel measurements such as Frequency or Period).
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The Arm source setting does not affect the Totalize, Totalize Gated and GxCntSetFunctionTestInternalClock functions.

Example

The following example returns the Arm source:

 

SHORT nHandle, nSource, nStatus;

GxCntGetArmSource (nHandle, &nSource, &nStatus)

 

See Also

GxCntSetArmSlope, GxCntSetArmSlope, GxCntGetArmSlope, GxCntGetErrorString