Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-24
707B-901-01 Rev. B / January 2015
For example, if row 1, column 1 channels are closed on each of the six slots, specifying a
channelList
parameter of
"2A02,
4A04"
opens the row 1, column 1 channels (slots 2 and 4 only).
Then, the row 1, column 2 channel on slot 2, and the row 1, column 4 channel on slot 4 close. The
row 1, column 2 channels remain closed on slots 1, 3, 5, and 6.
An error is generated if:
•
The parameter string contains slot
X
(where
X
= 1 to 6) or allslots
•
The parameter string is empty or parameter string with just spaces
•
A specified channel is invalid or does not exist for the slot
•
Channel pattern does not exist or the image of the pattern is an empty channel list
•
A forbidden item is specified
Once an error is detected, the command stops processing. Channels open or close only if no errors
are found and remain unchanged with any parsing or syntax error.
Example
channel.open("allslots")
channel.close("1A01,2A01,3A01,4A01,5A01,6A01")
channel.exclusiveslotclose("3A03")
print(channel.getclose("allslots"))
Open all channels on all slots.
Close row A column 1 channels on all slots.
Open row A column 1 on slot 3 and close
row A column 3 on slot 3 without affecting
any other slot with closed channels.
Output:
1A01;2A01;3A03;4A01;5A01;6A01
Also see
(on page 7-17)
(on page 7-22)
(on page 7-24)
(on page 7-33)
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 and channel patterns that will be queried
Details
If more than one channel is closed, they are semicolon-delimited in the string. When the
channelList
contains a channel pattern, only the closed channels in that image are returned.
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 (for example, a channel list equaling "
slot
X
" or
"
allslots
").
If nothing is closed within the specified scope, a
nil
response is returned.