Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-81
An error is generated if:
â–ª The name parameter already exists as a label
â–ª Any channel is forbidden to close
â–ª Insufficient memory exists to create the channel pattern
â–ª The parameter string contains slotX (where X equals 1 to 6) or allslots
â–ª The name parameter contains a space character
â–ª The pattern name exceeds 19 characters
Example 1
channel.pattern.setimage("3001:3010", "Channels")
oldList = channel.pattern.getimage("Channels")
newList = oldList .. ", 3911"
channel.pattern.delete("Channels")
channel.pattern.setimage(newList, "Channels")
channel.open("slot3")
channel.close("Channels")
print(channel.getclose("slot3"))
For this example, assume there is a
Keithley Model 3721 or similar card in
slot 3.
Create a pattern.
Append a channel to the pattern by
retrieving the pattern and recreating it.
Recreate the pattern with the new image.
Open all channels on slot 3 and close the
pattern Channels.
Output:
3001;3002;3003;3004;3005;3006;3
007;3008;3009;3010;3911
channel.pattern.setimage("3001:3010", "Channels")
channel.open("slot3")
channel.close("Channels, 3911")
print(channel.getclose("slot3"))
An alternate solution to the example
above is to create the pattern, then add
the analog backplane relay when you
close the channel. This eliminates the
need to get the image, delete the image
and recreate it.
Output:
3001;3002;3003;3004;3005;3006;
3007;3008;3009;3010;3911
Also see
createconfigscript() (on page 11-110)
channel.pattern.catalog() (on page 11-77)
channel.pattern.delete() (on page 11-78)
channel.pattern.getimage() (on page 11-78)
channel.pattern.snapshot() (on page 11-82)
channel.setpole() (on page 11-96)
setup.save() (on page 11-356)
setup.recall() (on page 11-356)