
Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-58
3700AS-901-01 Rev. D/June 2018
channel.getclose()
This function queries for the closed channels indicated by the channel list parameter.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
closed
= channel.getclose("
channelList
")
closed
A string listing the channels that are presently closed in the specified channel list
parameter
channelList
A string representing the channels, channel patterns, and backplane relays that will
be queried
Details
Use this command to return a list of closed measurement channels, including the paired channel for
4-wire measurements. It does not return non-measurement channels.
If more than one channel is closed, they are comma-delimited in the string. If
channelList
equals
"
slot
X
"
(where
X
is 1 to 6), the response indicates the channels and backplane relays that are
closed on that slot. Similarly, if
channelList
equals
"allslots"
, the response indicates all
channels and analog backplane relays that are closed in the instrument. The format of each channel
returned is slot, row, column (matrix channels) or slot, channel (MUX channels). When the
channelList
contains a channel pattern, only the closed channels in that image are returned.
You can use
"allslots"
to query for all channels closed. The instrument returns only information
for valid slots and channels.
An error message is generated if an empty parameter string is specified or if the specified channel list
contains no valid channels that can be closed.
If none of the channels in the channel list is closed,
nil
is returned.
Example 1
channel.setpole("slot5", 4)
channel.setbackplane("slot5", "5911, 5922")
channel.close("5003, 5005")
closedSlot5 = channel.getclose("slot5")
print(closedSlot5)
Configure the channel on slot 5 to be four-
pole.
Associate the slot 5 channels with analog
backplane relays 911 and 922 on slot 5.
Close channels 3 and 5 on slot 5.
Gets the channels and analog backplane
relays that are closed on slot 5 and output
the closed channels on slot 5.
Output:
5003(5033);5055(5035);5911;5922
Example 2
allClosed = channel.getclose("allslots")
Gets all channels and analog backplane
relays that are closed in the instrument.
Example 3
closedChans = channel.getclose("Chans")
Gets all channels closed in a pattern called
"Chans"
.