Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-39
Example
channel.pattern.setimage("1A01:1A05", "myPattern")
channel.pattern.setimage("1B01,1B03,1B05",
"myRoute")
myImage = channel.pattern.getimage("myPattern")
print(myImage)
print(channel.pattern.getimage("myRoute"))
print(channel.pattern.getimage("myRoute,
myPattern"))
Using a Model 7174 (or similar
model) card in Slot 1, this example
creates two channel patterns and
then queries these patterns.
Output:
1A01,1A02,1A03,1A04,1A05
1B01,1B03,1B05
1B01,1B03,1B05;1A01,1A02,1
A03,1A04,1A05
Also see
(on page 7-37)
(on page 7-38)
(on page 7-39)
channel.pattern.setimage()
This function creates a channel pattern and associates it with the specified name.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
System
reset
Channel reset
Create
configuration script
Not applicable
Usage
channel.pattern.setimage(channelList, name)
channelList
A string listing the channels and channel patterns to use when creating the new
channel pattern
name
A string representing the name to associate with the new channel pattern
Details
If
name
is used for an existing channel pattern, that pattern is overwritten with the new pattern channel image (if
no errors occur). The previous image associated with the name is lost.
The channel pattern is not created if an error is detected. You can create a channel pattern with an empty
channelList
parameter.
Once a channel pattern is created, the only way to add a channel to an existing pattern is to delete the old
pattern and recreate the pattern with the new desired items. Alternatively, include the additional channels in the
channelList
with the channel pattern when using.