Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-16
707B-901-01 Rev. B / January 2015
Example
testResult = bit.toggle(10, 3)
print(testResult)
The binary equivalent of decimal 10 is 1010.
Toggling the bit at
index
position 3 returns a
decimal value of 14 (binary 1110).
Output:
1.401
Also see
Bit manipulation and logic operations
(on page 5-4)
(on page 7-11)
(on page 7-11)
(on page 7-13)
(on page 7-14)
channel.clearforbidden()
This function clears the list of channels specified from being forbidden to close.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
channel.clearforbidden(
channelList
)
channelList
String that specifies a list of channels, using channel list notation
Details
The
channelList
parameter indicates the channels that will no longer be forbidden to close, 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
This function allows all items contained in the
channelList
parameter to be closed. It removes the
"forbidden to close" attribute that can be applied to a channel using
channel.setforbidden()
.
Command processing stops as soon as an error is detected. If an error is found, the channels are not
cleared from being forbidden to close.
Example
channel.reset("slot1")
channel.setforbidden("1A01:1A05")
channel.clearforbidden("1A02,1A03")
print(channel.getforbidden("slot1"))
Reset the channels on slot 1.
Set channels 1A01, 1A02, 1A03, 1A04, and
1A05 to be forbidden to close.
Change 1A02 and 1A03 to be allowed to
close.
Retrieve the list of forbidden channels.
Output:
1A01,1A04,1A05
Also see
(on page 7-27)
(on page 7-42)