GxCntGetTriggerSource

Purpose

Returns the trigger source.

Syntax

GxCntGetTriggerSource (nHandle, pnSource, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
pnSource
PSHORT
Returns trigger source:
  • 0 = GXCNT_TRIGGER_INTERNAL: Software triggered, initiates the first measurement immediately.
  • 1 = GXCNT_TRIGGER_EXTERNAL: The first measurement is delayed until the signal edge specified in GxCntSetTriggerSlope is received.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example returns the trigger source:

 

SHORT nHandle, nSource, nStatus;

GxCntGetTriggerSource (nHandle, &nSource, &nStatus)

 

See Also

GxCntGetTriggerSource, GxCntSetTriggerSlope, GxCntGetTriggerSlope, GxCntGetFunction, GxCntGetErrorString