GxCntSetTriggerSource

Purpose

Sets the trigger source.

Syntax

GxCntSetTriggerSource (nHandle, nSource, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nSource
SHORT
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 GxCntSetTriggerSource is received.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example sets the trigger source to external:

 

SHORT nHandle, nStatus;

GxCntSetTriggerSource (nHandle, GXCNT_TRIGGER_EXTERNAL, &nStatus)

 

See Also

GxCntSetTriggerSource, GxCntSetTriggerSlope, GxCntGetFunction, GxCntGetErrorString