Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-23
channel.createspecifier()
This function creates a string channel descriptor from a series of card-dependent integer arguments.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
specifier = channel.createspecifier(slot, row, column)
specifier
The formatted string for the channel
slot
The slot number to use (1 to 6)
row
The row number to use (see the matrix card documentation for limits); map row
letters to numbers (A = 1, B = 2, and so on)
column
Specifies the column number to use
Details
The arguments are dependent upon the card type in the specified slot. This command can only create valid
channel descriptors; if an illegal argument is sent for the type of card in the specified slot, an error is generated.
Example 1
cs = channel.createspecifier(1, 1, 1)
print(cs)
Creates a channel descriptor for Row 1,
column 1 on the card in Slot 1
Output:
1A01
Example 2
count = 0
for row = 1, 8 do
for col = 1, 12 do
ch = channel.createspecifier(1, row, col)
count = count + tonumber(channel.getcount(ch))
end
end
print("Count is " .. count .. ".")
Assuming an 8x12 matrix card
in slot 1, this example
calculates the sum of the
counts on all channels
Output:
Count is 1060656.
Also see
None