Sets the currently selected function’s range.
CalDmmSetRange (hHandle, dRange, plStatus)
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. |
The currently selected range will depend on the currently selected function.
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);