CalCounterSetTriggerLevel

Purpose

Sets the specified channel input trigger level.

Syntax

CalCounterSetTriggerLevel (hHandle, nChannel, dVoltage, plStatus)

Parameters

Name
Type
Comments
hHandle
LONG
Handle for a Counter.
nChannel
SHORT
Select channel (0-based).
dVoltage
DOUBLE
Channel’s input trigger level voltage.
plStatus
PLONG
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).

Example

The following example sets channel 0’s input trigger level to 1.2V:

 

LONG   lHandle, lStatus;

 

CalCounterSetSlope (lHandle, 0, 1.2, &lStatus);

 

See Also

CalCounterMeasure, CalCounterSetFunctionPulseWidth, CalCounterSetGateTime, CalCounterGetError