TDS5000B Online Programmer Guide
-- 9 2 --
ALIas:DEFine
Description
This command assigns a sequence of program messages to an alias la-
bel. 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
Related Commands
ALIas:STATE
Syntax 1
ALIas:DEFine <Qstring><,>{<Qstring>|<Block>}
Syntax 2
ALIas:DEFine?
Arguments
H 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 charac-
ters are not allowed. The label must be less than or equal to 12 charac-
ters.
H The second <Qstring> or <Block> is a complete
sequence of program messages.
The messages can contain only valid commands that must be sepa-
rated by semicolons and must follow all rules for concatenating com-
mands. The sequence must be less than or equal to 256 characters.
Example 1
ALIas:DEFine ”ST1”,”:RECALL:SETUP 5;:AUTOSET
EXECUTE;:SELECT:CH1 ON”
This command defines an alias named ”ST1” that sets up the instru-
ment.