
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
slot
X
(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
Example 2
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
(on page 11-110)
(on page 11-78)
(on page 11-78)
(on page 11-82)
(on page 11-96)
(on page 11-356)