Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-17
channel.close()
This function closes the channels and channel patterns that are specified by the channel list parameter without
opening any channels.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
channel.close(
channelList
)
channelList
A string that lists the channels and channel patterns to close
Details
Channels closed with this command are appended to the already closed channels (no previously
closed channels are opened by this command).
Actions associated with this function include:
•
Close the specified items in
channelList
•
Incur the settling time and any user-specified delay
An error is generated if:
•
The parameter string contains
slot
X
, where
X
is 1 to 6, or
allslots
•
A forbidden item is specified
•
Specified channel does not support being closed
Once an error is detected, the command stops processing and no channels are closed.
Example
channel.open("allslots")
channel.pattern.setimage("1B02,1B04,1B06",
"Chans")
channel.close("1A01:1A05, 1C03, Chans")
print(channel.getclose("slot1"))
Close a variety of channels, directly and with a
channel pattern; note that the output sorts the
channels
Output:
1A01;1A02;1A03;1A04;1A05;1B02;1B04;1
B06;1C03
Also see
(on page 7-22)
(on page 7-23)
(on page 7-24)
(on page 7-33)