Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-35
channel.pattern.catalog()
This function creates a list of the user-created channel patterns.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
for
name
in channel.pattern.catalog() do
...
end
name
String representing the user-defined name of the channel pattern that is assigned
by the catalog function during the
for
loop
Details
This function allows you to print or delete all user-created channel patterns in the run-time
environment. The entries that are returned are listed in random order.
Example
channel.pattern.setimage("1A01,1A02",
"patternA")
channel.pattern.setimage("1B01,1B02",
"patternB")
channel.pattern.setimage("1C01,1C02",
"patternC")
for name in channel.pattern.catalog() do
print(name .. " = " ..
channel.pattern.getimage(name))
channel.pattern.delete(name)
end
This example prints the names and items
associated with all user-created channel
patterns. It then deletes the channel pattern.
patternC = 1C01,1C02
patternA = 1A01,1A02
patternB = 1B01,1B02
Also see
(on page 7-36)
(on page 7-36)
(on page 7-37)
(on page 7-39)