GxCntGetTriggerSlope

Purpose

Returns the trigger slope.

Syntax

GxCntGetTriggerSlope (nHandle, pnSlope, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
pnSlope
PSHORT
Returns 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 returns the trigger slope:

 

SHORT nHandle, nSlope, nStatus;

GxCntGetTriggerSlope (nHandle, &nSlope, &nStatus)

 

See Also

GxCntSetTriggerSlope, GxCntSetTriggerSource, GxCntGetTriggerSource, GxCntGetErrorString