Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-32
707B-901-01 Rev. A / August 2010
Example
channel.reset("1A01")
print(channel.getlabel("1A01"))
channel.setlabel("1A01", "Device")
print(channel.getlabel("1A01"))
This example resets the channel, prints the
default label of the channel, sets the label to
"Device", and returns the new label.
Output:
1A01
Device
Also see
(on page 7-46)
Data retrieval commands
channel.getlabelcolumn()
This function retrieves the label that was assigned to a column.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
System
reset
Channel reset
Create
configuration script
Empty string or blank
Usage
label = channel.getlabelcolumn(channelList)
label
A string that lists the comma-delimited labels for the items in
channelList
channelList
A string that lists the channels to query for the labels associated with them
Details
The parameter
channelList
can contain more than one channel. Use a comma to delimit the labels for the
channels. The return string
label
lists the labels in the same order that the channels are specified.
You cannot specify a channel pattern.
The
channelList
parameter can contain
slotX
(where
X
equals 1 to 6 for Model 707B, or 1 for Model 708B)
or
allslots
. It can also contain a label. However, if the label exists, it is in the returned response and not the
numeric channel number.
Example
channel.setlabelcolumn("1A01", "DUT1")
channel.setlabelcolumn("1A03", "DUT2")
print(channel.getlabelcolumn("1a01:1a12"))
Label all the column labels on a card
Output:
DUT1,,DUT2,,,,,,,,,
Also note the change on the display
Also see