GxCntSetArmSource

Purpose

Sets the Arm source.

Syntax

GxCntSetArmSlope (nHandle, nSource, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nSource
SHORT
Arm source:
  • 0 = GXCNT_ARM_INTERNAL: 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 sets the Arm source to the external input connector:

 

SHORT nHandle, nStatus;

GxCntSetArmSource (nHandle, GXCNT_ARM_EXTERNAL, &nStatus)

 

See Also

GxCntGetArmSlope, GxCntSetArmSlope, GxCntGetErrorString