
Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-31
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-18)
(on page 7-45)
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
System
reset
Channel reset
Create
configuration script
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
Details
The
channelList
parameter can contain more than one channel. If it does, a comma delimits the labels for the
channels. The return string lists the labels in the same order that the channels were specified. The
channelList
parameter cannot be an empty string and must be a valid channel.
The
channelList
parameter can contain
slotX
(where X equals 1 to 6 for Model 707B, or 1 for Model 708B)
or
allslots
.
•
An error is generated if:
•
The slot is empty
•
The specified channel is not on the installed card
•
A channel pattern is specified
•
The channel does not support a label setting
Command processing stops as soon as an error is detected, and then a
nil
response is generated. No partial
list of labels is returned.