ALIas:DEFine
Assigns a sequence of program messages to an alias label. These messages are
then substituted for the alias whenever it is received as a command or query,
provided that ALIas:STATE has been turned on. The query form of this
command returns the definitions of a selected alias.
NOTE. Attempting to give two aliases the same name causes an error. To give a
new alias the name of an existing alias, the existing alias must first be deleted.
Group
Alias
Syntax
ALIas:DEFine <QString><,>{<QString>|<Block>}
ALIas:DEFine? <QString>
Related commands
ALIas[:STATE] on page 47
Arguments
The first <QString> is the alias label. This label cannot be a command name.
Labels must start with a letter and can contain only letters, numbers, and
underscores; other characters are not allowed. The label must be less than or
equal to 12 characters. The second<QString> or <Block> is a complete sequence
of program messages. The messages can contain only valid commands that must
be separated by semicolons and must follow all rules for concatenating
commands. The sequence must be less than or equal to 256 characters.
Examples
ALIAS:DEFINE "ST1",":RECALL:SETUP 5;:AUTOSET
EXECUTE;:SELECT:CH1 ON" defines an alias named "ST1" that sets up the
instrument.
ALIAS:DEFINE? "ST1" returns :ALIAS:DEFINE
"ST1",#246 :RECALL:SETUP 5;:AUTOSET EXECUTE;:SELECT:CH1 ON.
A commands
TBS2000 Series Programmer 45