CalRefDmmMeasure

Purpose

Takes a measurement and return the result.

Syntax

CalRefDmmMeasure(hHandle, pdResult, plStatus)

Parameters

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.

Comments

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.

Example

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);

 

See Also

CalRefDmmSetFunction, CalRefDmmSetRange, CalRefGetError