GxCntSetChannelTriggerLevel

Purpose

Sets the specified channel input trigger level.

Syntax

GxCntSetChannelTriggerLevel  (nHandle, nChannel, dVoltage, 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.
dVoltage
DOUBLE
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 sets channel A Trigger Level to 1.24 volts:

 

SHORT nHandle, nStatus;

GxCntGetChannelTriggerLevel (nHandle, GXCNT_CHANNEL_A, 1.24, &nStatus)

 

See Also

GxCntGetChannelTriggerLevel, GxCntSetChannelTriggerLevelMode, GxCntGetChannelTriggerLevelMode, GxCntGetErrorString