GxCntGetChannelTriggerLevel

Purpose

Returns the specified channel input trigger level.

Syntax

GxCntGetChannelTriggerLevel (nHandle, nChannel, pdVoltage, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nChannel
SHORT
Specified Channel number:
  • 0 = GXCNT_CHANNEL_A: Channel A
  • 1 = GXCNT_CHANNEL_B: Channel B.
pdVoltage
PDOUBLE
Returned channel’s input trigger level voltage.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The Trigger Level setting defines the input signal voltage that creates a logical event from the input comparator circuit (trigger level is also commonly known as “threshold” voltage). The trigger level can be set anywhere between +5.0V and -5.0V, with 1mV resolution for PCB revision C and above (40mV for previous PCB). User entered values are rounded to the nearest least significant bit.

Trigger Level can be set automatically by the counter using or manually, see GxCntSetChannelTriggerLevelMode function for more details.

Example

The following example returns channel A Trigger Level setting:

 

SHORT nHandle, nMode, nStatus;

DOUBLE dVoltage;

GxCntGetChannelTriggerLevel (nHandle, GXCNT_CHANNEL_A, &dVoltage, &nStatus)

 

See Also

GxCntSetChannelTriggerLevel, GxCntSetChannelTriggerLevelMode, GxCntGetChannelTriggerLevelMode, GxCntGetErrorString