Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-43
Example
channel.pattern.setimage("1A01,1A02",
"patternA")
channel.pattern.setimage("1B01,1B02",
"patternB")
channel.pattern.setimage("1C01,1C02",
"patternC")
for name in channel.pattern.catalog() do
print(name .. " = " ..
channel.pattern.getimage(name))
end
channel.setforbidden("1A02, 1B01")
for name in channel.pattern.catalog() do
print(name .. " = " ..
channel.pattern.getimage(name))
end
Create three channel patterns, and then print.
Set forbidden for one channel from patternA
and patternB, then print the catalog again. Only
patternC should remain.
Assuming no existing channel patterns, the
output is:
patternC = 1C01,1C02
patternA = 1A01,1A02
patternB = 1B01,1B02
patternC = 1C01,1C02
Also see
(on page 7-16)
(on page 7-27)
channel.setlabel()
This function sets the label associated with a channel.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Instrument reset
Channel reset
Recall setup
Create configuration script
Save setup
No label
Usage
channel.setlabel(
channelList
,
label
)
channelList
A string that lists the channel to which to set the label
label
A string that represents the label for the channel in
channelList
, up to 19 characters