CalCounterMeasure

Purpose

Reads a single measurement.

Syntax

CalCounterMeasure (hHandle, nChannel, pdMeasurement, plStatus)

Parameters

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.

Comments

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.

Example

The following example read a single measurement from channel 0:

 

LONG   lHandle, lStatus;

DOUBLE dMeasurement;

 

CalCounterMeasure (lHandle, 0, &dMeasurement, &lStatus);

 

See Also

CalCounterSetFunctionPulseWidth, CalCounterSetAcquisitionMode, CalCounterSetGateTime, CalCounterSetTriggerLevel, CalCounterGetError