Takes a measurement and return the result.
CalRefDmmMeasure(hHandle, pdResult, plStatus)
Name |
Type |
Comments |
hHandle |
LONG |
Handle for a DMM. |
pdResult |
PDOUBLE |
Return the measurement. |
plStatus |
PLONG |
Returned status: 0 on success, negative number on failure. |
This function generates a software trigger and forces the DMM to take a measurement. The result returned without normalizing in base units. For example, Voltage returned as Volts, Current returned as Amps, Resistance returned as Ohms.
The following example sets the measurement function to measure VDC and takes a new measurement:
LONG lHandle, lStatus;
DOUBLE dMeasurement
CalRefDmmSetFunction (lHandle, aRefDmmFunctionVDc, &lStatus);
CalRefDmmMeasure (lHandle, &dMeasurement, &lStatus);