GxCntSetArmSlope

Purpose

Sets the Arm Start or Stop slope.

Syntax

GxCntSetArmSlope (nHandle, nStartStop, nSlope, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nStartStop
SHORT
Specify the Arm Start or Stop slope:
  • 0 = GXCNT_ARM_START_SLOPE: Arm Start slope
  • 1 = GXCNT_ARM_STOP_SLOPE: Arm Stop slope
nSlope
SHORT
Arm 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 sets the Arm starts slope to positive:

 

SHORT nHandle, nStatus;

GxCntSetArmSlope (nHandle, GXCNT_ARM_START_SLOPE, GXCNT_ARM_POSITIVE_SLOPE, &nStatus)

 

See Also

GxCntGetArmSlope, GxCntSetArmSource, GxCntGetArmSource, GxCntGetErrorString