
Section 9
:
Instrument Control Library (ICL)
Series 3700 System Switch/Multimeter Reference Manual
9-40
Document Number: 3700S-901-01 Rev. A / August 2007
channel.pattern.setimage
Example
To create a channel pattern called mychans using channels 1 to 10 on Slot 3:
channel.pattern.setimage("3001:3010”, "mychans")
To add analog backplane relay 1 of bank 1 on Slot 3 to mychans:
OldList = channel.pattern.getimage("mychans")
NewList = OldList .. ",3911"
channel.pattern.delete("mychans")
channel.pattern.setimage(NewList, "mychans")
To include 3911 without deleting and creating again,
channel.close("mychans, 3911")
– closes mychans and 3911
The above works for channels as well. J
ust replace the ―,3911‖ with the appropriate
channel(s). For example, to add channels 11 and 12 of Slot 3 to ―mychans‖.
OldList = channel.pattern.getimage("mychans")
NewList = OldList .. ",3011, 3012”
channel.pattern.delete("mychans")
channel.pattern.setimage(NewList, "mychans")
To include 3011 and 3012 without deleting and creating again:
channel.close("mychans, 3011,3012")
To rename MyList to MyPattern:
MyListItems = channel.pattern.getimage("MyList")
channel.pattern.setimage(MyListItems, "MyPattern")
channel.pattern.delete("MyList")
- or -
channel.pattern.setimage(channel.pattern.getimage(
"MyList"), "MyPattern")
channel.pattern.delete("MyList")
channel.pattern.snapshot
Function
Creates a channel pattern that uses the present state of each channel and analog
backplane relay.
Usage
channel.pattern.snapshot(name)
name:
A string representing the name to associate with the present state of channels.