Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-63
Example 2
channel.setforbidden("3003, 3005, 3925")
Forbidden =
channel.getforbidden("slot3")
print(Forbidden)
Set channels 3 and 5 and analog backplane
relay 5 in bank 2 to forbidden to close on
slot 3.
Query for the channels and analog backplane
relays that are forbidden to close on slot 3.
Sample output:
3003,3005,3925
Example 3
Forbidden =
channel.getforbidden("1911:1916" ..
",2004,2008,2012")
Query for channels and analog backplane
relays in a specified list. This list is only
checking channels and analog backplane
relays 1 to 6 on slot 1 and channels 4, 8 and
12 on slot 2 and returning the channels and
analog backplane relays that are forbidden to
close.
Also see
(on page 11-46)
(on page 9-3)
channel.getimage()
This function queries a channel for items associated with that channel when used in a switching operation.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Instrument reset
Channel reset
Recall setup
Related backplane relays
Pole settings
Not applicable
channel identifier
Usage
channels
= channel.getimage("
channelList
")
channels
A string listing the channels and analog backplane relays associated with the
specified items
channelList
A string representing the channels and analog backplane relays to query
Details
The parameter string can contain
"slot
X
"(
where
X
equals 1 to 6) or
"allslots"
.
The returned string lists the channels in slot, channel format or slot, row, column format. A request for
multiple channels is delimited by a semicolon. Note that commas delimit the specific channels and
analog backplane relays for an individual channel in the string.
If an error is detected, the response is
nil
.
An error is generated if:
▪
A channel pattern is specified
▪
An empty parameter string is specified
▪
slot
X
is empty or
allslots
parses to specify no valid channels because all slots are empty