Sets the specified channel input trigger level.
CalCounterSetTriggerLevel (hHandle, nChannel, dVoltage, plStatus)
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. |
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 following example sets channel 0’s input trigger level to 1.2V:
LONG lHandle, lStatus;
CalCounterSetSlope (lHandle, 0, 1.2, &lStatus);
CalCounterMeasure, CalCounterSetFunctionPulseWidth, CalCounterSetGateTime, CalCounterGetError