CalPwrMeterMeasure

Purpose

Returns a single measurement based on the specified measurement type.

Syntax

CalPwrMeterMeasure (nChannel, lTimeout, pdResult, plStatus)

Parameters

Name
Type
Comments
nChannel
SHORT
Select channel (1-based).
lTimeout
LONG
Measurement timeout.
pdResult
PDOUBLE
Returned measurement value.
plStatus
PLONG
Returned status: 0 on success, negative number on failure.

Comments

The function captures waveforms and returns a single measurement based on the specified measurement type.

Example

The following example read a single AC RMS measurement from channel 0, while reapplying measurement setup to the input signal:

 

LONG   lHandle, lStatus;

DOUBLE dMeasurement;

 

CalPwrMeterMeasure (1, 1000, &dMeasurement, &lStatus);

 

See Also

CalPwrMeterSetupMeasurement, CalPwrMeterGetInfo, CalPwrMeterReset, CalPwrMeterZero, CalPwrMeterGetError