Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-45
channel.setdelay
Example
Set channels 1 and 3 on Slot 5 for a delay time of 50 microseconds:
channel.setdelay("5001, 5003" , 50e
-
6)
To set the channels on Slot 3 for 0 delay time:
channel.setdelay ("slot3", 0)
channel.setlabel
Function
Sets the label associated with a channel.
Usage
channel.setlabel(ch_list, label)
ch_list
A string listing the channel to set the label associated with it.
Label
A string representing the label for items in ch_list.
Remarks
This command will set the label of the specified channel in
ch_list
to the value
specified in the label parameter. To clear label use the command with the label
parameter equaling an empty string ―‖ or a string with a space as the first character.
If the name specified is being used for an existing channel label then, that label will
revert back to default label and the new channel will be updated to use the new label if
no errors occur. The previous association with that label will be lost. The channel
attributes associated with each channel remain unchanged except for their labels. For
example, channel one on Slot
4 has a label of ―start‖. Sending this command with
channel.setlabel(“5001”, “start”)
will cause Channel 4001 to lose the label
of ―start‖ and go back to ―4001‖ while Channel 5001 will have its label set to ―start‖.
Now, using ―start‖ in commands will refer to 5001 and not 4001.
An error will be generated if:
An empty parameter string for
ch_list
.
Exceeds max length which is 20 characters.
a specified channel does not exist
the channel is for an empty slot
a channel pattern is specified
the channel does not support a label setting
an analog backplane relay is specified
more than one channel is specified in ch_list
ch_list
contains ―slotX‖ where X = 1 to 6 or ―allslots‖
The label contains a space. However, if the first character is a space, the label will
be cleared.
The label is already being used to represent a channel pattern.
Command processing stops as soon as an error is detected and no channel label will
be updated. To clear a label back to its factory default, ―SCCC‖ or "SRCC," send an
empty string for the label parameter. The label is not persistent through a power-cycle.
However, a label is part of data saved with a setup.
Details
Not persistent through a power cycle.
Labels may be used with commands. Labels and patterns are unique
– meaning
a c
hannel label can‘t be used for a channel pattern. Whichever one is created or
specified first is the one used. If try to use for the other, an error will be generated.
Also see
channel functions and attributes
(on page 9-16)