
Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-181
Also see
(on page 11-163)
(on page 11-166)
dmm.getconfig()
This function queries for the DMM configurations that are associated with the specified channels or channel
patterns.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Instrument reset
Channel reset
Recall setup
Create configuration script
Save setup
"nofunction"
Usage
DMMconfiguration
= dmm.getconfig("
channelList
")
DMMconfiguration
A comma-delimited string that lists the DMM configurations associated with items
in
channelList
channelList
The channels or channel patterns to query
Details
The response is a comma-delimited string that lists the user-defined and factory-defined
configurations. They are listed in the same order in which they are specified in
channelList
.
The configurations indicate how the DMM will be configured when the corresponding channel or
channel pattern is closed with the
dmm.close()
function or used in a scan list without an overriding
DMM configuration.
An error is generated if:
•
A specified channel or channel pattern is invalid.
•
A channel number does not exist for slot based on installed card.
•
Channel pattern does not exist.
•
Channel being specified does not support a configuration setting (for example, a digital I/O
channel or analog backplane relay).
Example
slot1_2Configs = dmm.getconfig("slot1, slot2")
print(slot1_2Configs)
Queries channels on slots 1 and 2.
chan3001_3010Configs =
dmm.getconfig("3001:3010")
print(chan3001_3010Configs)
Queries channels 1 to 10 on slot 3.
Sample output may be:
dcvolts,dcvolts,dcvolts,dcvolts,
dcvolts,temperature,temperat
ure,temperature,temperature,
temperature
This shows that channels 3001 to 3005 are
configured for
"dcvolts"
and 3006 to
3010 are configured for
"temperature"
.