Section 9
:
Instrument Control Library (ICL)
Series 3700 System Switch/Multimeter Reference Manual
9-122
Document Number: 3700S-901-01 Rev. A / August 2007
dmm.units
Attribute
Indicates the units for voltage and temperature measurements.
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 9-91) has no effect on this setting.
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