CalDmmSetRange

Purpose

Sets the currently selected function’s range.

Syntax

CalDmmSetRange (hHandle, dRange, plStatus)

Parameters

Name
Type
Comments
hHandle
LONG
Handle for a DMM.
dRange
DOUBLE
Sets the currently selected function’s range.
plStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The currently selected range will depend on the currently selected function.

Example

The following example sets the function to Volts DC and the range to 10 Volts:

 

LONG   lHandle, lStatus;

DOUBLE dRange;

 

CalDmmSetFunction(lHandle, aDmmFunctionVDc , &lStatus);

CalDmmSetRange (lHandle, 10, &lStatus);

 

See Also

CalDmmSetFunction, CalDmmGetFunction, CalDmmGetError