User manual

Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-63
channel.pattern.getimage()
Remarks
A nil response will be generated if:
The channel pattern does not exist.
A channel is specified.
An analog backplane relay is specified.
The returned string lists the channels in the SCCC or SRCC format (even if a channel
pattern was used to create it). Requests for multiple channel patterns will be delimited
by a semicolon, however, commas will delineate the specific channels for a single
channel pattern in the string.
Also see
channel.pattern.catalog() (on page 13-61)
channel.pattern.delete() (on page 13-62)
channel.pattern.snapshot() (on page 13-66)
channel functions and attributes (on page 13-24)
Example
Assume mychans is comprised of Channels 1 through 5 on Slot 4 and myroute is
comprised of Channels 1, 3, and 5 on Slot 2:
To query the channel pattern called mychans:
channels = channel.pattern.getimage('mychans')
print(channels) 4001,4002,4003,4004,4005
To query the channel pattern called myroute:
channels = channel.pattern.getimage('myroute')
print(channels) 2001,2003,2005
To query channel patterns called myroute and mychans in a single call:
channels = channel.pattern.getimage('myroute,
mychans')
print(channels) 2001,2003,2005;4001,
4002,4003,4004,4005
channel.pattern.setimage()
Function
Creates a channel pattern and associates it with the specified name.
Usage
channel.pattern.setimage(<ch_list>, name)
ch_list: A string listing the channels, channel patterns, or analog backplane relays to
use when creating the new channel pattern.
Name: A string representing the name to associate with the new channel pattern.