Returns the specified channel input trigger level.
GxCntGetChannelTriggerLevel (nHandle, nChannel, pdVoltage, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
nChannel |
SHORT |
Specified Channel number:
|
pdVoltage |
PDOUBLE |
Returned channel’s input trigger level voltage. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
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.
The following example returns channel A Trigger Level setting:
SHORT nHandle, nMode, nStatus;
DOUBLE dVoltage;
GxCntGetChannelTriggerLevel (nHandle, GXCNT_CHANNEL_A, &dVoltage, &nStatus)
GxCntSetChannelTriggerLevel, GxCntSetChannelTriggerLevelMode, GxCntGetChannelTriggerLevelMode, GxCntGetErrorString