Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-25
Example 1
channelList = "1A01:1H12"
channel.close("1A01")
print(channel.getclose(channelList))
channel.close("1C03")
print(channel.getclose(channelList))
For this example, assume there is a card or
pseudocard in slot 1 with no previously closed
channels. The output is:
1A01
1A01;1C03
Example 2
channel.close("1B03:1B05")
print(channel.getclose("allslots"))
For this example, assume there is a card or
pseudocard in slot 1 with no previously closed
channels. The output is:
1B03;1B04;1B05
Also see
(on page 7-17)
(on page 7-22)
(on page 7-32)
(on page 7-33)
channel.getcount()
This function returns a string with the close counts for the specified channels.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
counts
= channel.getcount(
channelList
)
counts
A comma-delimited string listing the channel close counts
channelList
A string listing the items to query, which can include:
•
Channels
•
Channel patterns (channels will be listed in the order in which they are listed
in the pattern)
•
slot
X
, where
X
equals 1 to 6 for the Model 707B or 1 for the Model 708B
•
allslots
Details
A close count is the number of times a relay has been closed. The count values are returned in the
order in which the channels are specified.
If
channelList
includes a pattern, you can use
channel.pattern.getimage()
with the pattern
name to see the channel order and the channels to which the close counts pertain.