User manual

Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-175
dmm.units
Usage
To read the units:
value = dmm.units
value: Represents the present units.
To write the units:
dmm.units = value
value: Represents the desired units.
For value, use one of the following:
dmm.UNITS_VOLTS or 0
dmm.UNITS_DECIBELS or 1
dmm.UNITS_CELSIUS or 2
dmm.UNITS_KELVIN or 3
dmm.UNITS_FAHRENHEIT or 4
Remarks
This attribute is only valid when dmm.func is equal to:
"dcvolts"
"acvolts"
"temperature".
All other configurations generate an error and return nil when queried. Errors will also
be generated if the parameter value does not make sense for selected function.
The settings of dmm.UNITS_VOLTS and dmm.UNITS_DECIBELS apply when
dmm.func = "dcvolts" or "acvolts". Likewise, settings of dmm.UNITS_FAHRENHEIT ,
dmm.UNITS_CELSIUS, and dmm.UNITS_KELVIN apply when dmm.func =
"temperature".
Changing functions with dmm.func (on page 13-137) will reflect the units setting for
that function.
The factory default and dmm.reset function value is dmm.UNITS_VOLTS.
The factory default for "temperature" is dmm.UNITS_CELSIUS.
Example
To set units for temperature measurements to Fahrenheit (°F):
dmm.func = "temperature"
dmm.units = dmm.UNITS_FAHRENHEIT