Reads a single measurement.
CalCounterMeasure (hHandle, nChannel, pdMeasurement, plStatus)
Name |
Type |
Comments |
hHandle |
LONG |
Handle for a Counter. |
nChannel |
SHORT |
Select channel (0-based). |
pdMeasurement |
PDOUBLE |
Returned measurement. |
plStatus |
PLONG |
Returned status: 0 on success, negative number on failure. |
This function is for reading measurement results out of the board. If a result is available it is returned immediately, otherwise the function will wait for a measurement to become available.
The following example read a single measurement from channel 0:
LONG lHandle, lStatus;
DOUBLE dMeasurement;
CalCounterMeasure (lHandle, 0, &dMeasurement, &lStatus);
CalCounterSetFunctionPulseWidth, CalCounterSetAcquisitionMode, CalCounterSetGateTime, CalCounterSetTriggerLevel, CalCounterGetError