Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-65
Usage
label = channel.getlabel("channelList")
A string listing the comma-delimited labels for items in channelList
A string listing the channels to query for the label associated with them
Details
The channelList parameter can contain more than one channel. If it does, a comma delimits the
labels for the channels. The return string lists the labels in the same order that the channels were
specified. The channelList parameter cannot be an empty string and must be a valid channel.
The channelList parameter can contain slotX (where X equals 1 to 6) or allslots. In this case,
the channels are listed before the analog backplane relays.
An error is generated if:
â–ª A specified channel does not exist
â–ª The slot is empty
â–ª The specified channel is not on the installed card
â–ª A channel pattern is specified
Command processing stops as soon as an error is detected, and then a nil response is generated.
No partial list of labels is returned.
Labels are also supported for digital I/O, DAC, and totalizer channels.
Example
channel.reset("5001")
print(channel.getlabel("5001"))
channel.setlabel("5001", "Device")
print(channel.getlabel("5001"))
Reset the channel.
Print the default label of the channel.
Set the label to Device.
Return the new label.
Output:
5001
Device
Also see
channel.setlabel() (on page 11-91)
Data retrieval commands (on page 9-3)
channel.getmatch()
This function gets the match value on a channel.
Usage
matchValue = channel.getmatch("channelList")
The match values set for the channels in channelList
String specifying digital I/O or totalizer channels to query, using normal channel list
syntax