User manual
Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-4 3700S-901-01 Rev. C / July 2008
Reading an attribute
Reading an attribute is accomplished by passing it to a function call as a
parameter or by assigning it to another variable.
Parameter passing example:
The following command reads the filter type for the DMM by passing the
attribute to the print function, which outputs a value:
print(dmm.filter.type)
Output: 0.000000e+00
The above output indicates that the moving average filter is selected.
Variable assignment example:
The following command reads the filter type by assigning the attribute to a
variable named filtertype:
filtertype = dmm.filter.type
Syntax rules
Commands for functions and attributes are case sensitive. As a general rule,
all function and attribute names must be in lower case, while parameters
use a combination of lower and upper case characters. Upper case
characters are required for attribute constants. Example:
dmm.func = dmm.DC_VOLTS
In the above command, which selects the DC volts measurement function,
dmm.DC_VOLTS is the attribute constant and dmm.func is the attribute
command.
White space in a function is not required. The function to set digital I/O line 3
low can be sent with or without white spaces as follows:
digio.writebit(3,0) Whitespaces NOT used in string.
digio.writebit (3, 0) Whitespaces used in string.
Some commands require multiple parameters. Multiple parameters must be
separated by commas (,), as shown above for the digio.writebit
function.