
Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-28
707B-901-01 Rev. A / August 2010
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)
•
slotX
, 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.
When the
channelList
parameter for this function is
"slotX"
, the response first lists the channels starting
from lowest to highest (from slot 1 to slot 6). Because each slot is processed completely before going to the next,
all slot 1 channels are listed before slot 2 channels.
The counts reported for the following cards indicate the number of closures since the last power cycle of the
card:
•
7072
•
7072-HV
•
7173-50
•
7174A
For all other cards, the number of closures is the closures that have occurred over the lifetime of the card.
If an error is detected, a
nil
value is returned. No partial list of close counts is returned.
Example
channel.pattern.setimage("1A01,1B02,1C01","Path")
PathList =
channel.pattern.getimage("Path")
print(PathList)
print(channel.getcount(PathList))
print(channel.getcount("Path"))
Gets the close counts for channels in a
channel pattern called
"Path"
Sample output:
1A01,1B02,1C01
11001,11014,11025
11001,11014,11025