User manual
Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-3
The results of a function call are used by assigning the return values to variables
and accessing those variables. The following code will measure voltage and
return the reading:
dmm.func = 'dcvolts'
reading = dmm.measure()
print(reading)
Output: 2.360000e+00
The above output indicates that the voltage reading is 2.36V.
Attributes
An attribute is a characteristic of an instrument feature or operation. For
example, some characteristics of a digital multimeter (DMM) include the
measurement function and range.
Assigning a value to an attribute
An attribute-based command can be used to assign a new value to an attribute.
For many attributes, the value can be in the form of a discrete number or a
predefined identifier. For example, dmm.autorange is an attribute. The
autorange attribute is enabled by assigning the attribute to either of the following
values:
1 or dmm.ON
Either of the following command messages will configure the DMM for the
moving average filter:
dmm.filter.type = 0
dmm.filter.type = dmm.FILTER_MOVING_AVG