GxCntGetArmSlope

Purpose

Returns the Arm Start or Stop slope.

Syntax

GxCntGetArmSlope (nHandle, nStartStop, pnSlope, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nStartStop
SHORT
Specify Arm Start or Stop slope:
  • 0 = GXCNT_ARM_START_SLOPE: Arm Start slope
  • 1 = GXCNT_ARM_STOP_SLOPE: Arm Stop slope
pnSlope
PSHORT
Returned slope:
  • 0 = GXCNT_ARM_POSITIVE_SLOPE: Positive signal transition
  • 1 = GXCNT_ARM_NEGATIVE_SLOPE: Negative signal transition
  • 2 = GXCNT_ARM_DISABLE_SLOPE: Disables start/stop arming
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The Arm start/stop slope controls the initiation and termination of the measurement. This setting is active only when the Arm source is set to external using the GxCntSetArmSource command.

Example

The following example returns the Arm starts slope settings:

 

SHORT nHandle, nSlope, nStatus;

GxCntGetArmSlope (nHandle, GXCNT_ARM_START_SLOPE, &nSlope, &nStatus)

 

See Also

GxCntSetArmSlope, GxCntSetArmSource, GxCntGetArmSource, GxCntGetErrorString