Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-28
707B-901-01 Rev. B / January 2015
Usage
forbiddenList
= channel.getforbidden(
channelList
)
forbiddenList
Comma-delimited string listing the channels in the channel list that are forbidden to
close
channelList
A string listing the channels and channel patterns that are to be checked to see if
they are forbidden to close
Details
The
channelList
parameter indicates which channels to check, and may include:
•
allslots
or
slot
X
(where
X
equals 1 to 6 for Model 707B, or 1 for Model 708B)
•
Channel ranges or individual channels
•
Channel patterns
If there are no channels in the scope of the
channelList
that are on the forbidden list, the string
returned is empty or
nil
. The format of the channels in the response string is slot, row, column for
matrix channels.
Example
channel.reset("slot1")
channel.setforbidden("1A01:1A05")
print(channel.getforbidden("allslots"))
print(channel.getforbidden("slot1"))
print(channel.getforbidden(
"1A01:1A03,1B04,1B08,1B12"))
Reset the channels.
Set channels 1A01, 1A02, 1A03, 1A04, and
1A05 to be forbidden.
List the forbidden channels on all slots, slot 1,
and list of channels.
Output:
1A01,1A02,1A03,1A04,1A05
1A01,1A02,1A03,1A04,1A05
1A01,1A02,1A03
Also see
(on page 7-16)
(on page 7-42)
channel.getlabel()
This function retrieves the label associated with one or more channels.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Instrument reset
Channel reset
Recall setup
Create configuration script
Save setup
slot, row, column identifier
Usage
label
= channel.getlabel(
channelList
)
label
A string listing the comma-delimited labels for items in
channelList
channelList
A string listing the channels to query for the label associated with them