GxCntSetTriggerSlope

Purpose

Sets the trigger slope.

Syntax

GxCntGetTriggerSlope (nHandle, nSlope, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nSlope
SHORT
Trigger slope:
  • 0 = GXCNT_POSITIVE_SLOPE: Rising (Positive) edge.
  • 1 = GXCNT_NEGATIVE_SLOPE: Falling (Negative) edge.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The trigger slope setting is active only when the trigger source is set to external, see GxCntSetTriggerSource function for details.

Example

The following example sets the trigger slope to negative:

 

SHORT nHandle, nStatus;

GxCntSetTriggerSlope (nHandle, GXCNT_NEGATIVE_SLOPE, &nStatus)

 

See Also

GxCntSetTriggerSlope, GxCntSetTriggerSource, GxCntGetTriggerSource, GxCntGetFunction, GxCntGetErrorString