Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-38
707B-901-01 Rev. B / January 2015
Channel patterns are stored when you run the
createconfigscript()
command or
setup.save()
command.
Channel patterns are lost when power is cycled. Use
setup.recall()
or a script created with
createconfigscript()
to restore them.
The following restrictions exist when naming a channel pattern:
•
The name must contain only letters, numbers, or underscores
•
The name must start with a letter
•
The name is case sensitive
Examples of valid names:
•
Channels
•
Chans
•
chans
•
Path1
•
Path20
•
path_3
Examples of invalid names:
•
1path
(invalid because it starts with a number)
•
my chans
(invalid because it contains a space)
•
My,chans
(invalid because it contains a comma)
•
Path1:10
( invalid because it contains a colon)
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 for Model 707B, or 1 for Model 708B) or
allslots
•
The name parameter contains a space character
•
The pattern name exceeds 19 characters
Example 1
channel.pattern.setimage("1A01:1A10", "Channels")
oldList = channel.pattern.getimage("Channels")
newList = oldList .. ", 1C11"
channel.pattern.delete("Channels")
channel.pattern.setimage(newList, "Channels")
channel.close("Channels, 1D11")
Items = channel.pattern.getimage("Channels")
channel.pattern.setimage(Items, "Pattern")
channel.pattern.delete("Channels")
For this example, assume there is a
Keithley Model 7174 or similar card in
slot 1.
Creates a pattern, appends a channel to
the pattern by retrieving the pattern and
recreating it, and then renames the pattern.