
Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-79
Example
-- Set up two patterns
channel.pattern.setimage("4001:4005", "myPattern")
channel.pattern.setimage("2001,2003,2005", "myRoute")
-- Print images
myImage = channel.pattern.getimage("myPattern")
print(myImage)
print(channel.pattern.getimage("myRoute"))
print(channel.pattern.getimage("myRoute,
myPattern"))
Using a Model 3721 (or similar model) card in slots 2 and 4, this example creates two channel patterns and
then queries these patterns.
Output:
4001,4002,4003,4004,4005
2001,2003,2005
2001,2003,2005;4001,4002,4003,4004,4005
Also see
(on page 11-78)
(on page 11-79)
(on page 11-96)
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
Instrument reset
Channel reset
Recall setup
Pole setting change
Create configuration script
Save setup
Not applicable
Usage
channel.pattern.setimage("
channelList
", "
name
")
channelList
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
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 DMM
configuration associated with the pattern remains unchanged in this scenario.