Returns a single measurement based on the specified measurement type.
CalPwrMeterMeasure (nChannel, lTimeout, pdResult, plStatus)
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. |
The function captures waveforms and returns a single measurement based on the specified measurement type.
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);
CalPwrMeterSetupMeasurement, CalPwrMeterGetInfo, CalPwrMeterReset, CalPwrMeterZero, CalPwrMeterGetError