Tektronix TDS 310 Sprinkler User Manual


 
Command Descriptions
Syntax and Commands
2Ć36
ALIas:DEFINE
Assigns a sequence of program messages to an alias label. If ALIas:STATE
has been turned ON, these messages are substituted for the alias whenever it
is received as a command or query. The ALIas:DEFINE? query returns the
definition of a selected alias.
You can define up to 10 aliases at one time. Aliases can be recursive. That is,
aliases can include other aliases with up to 10 levels of recursion.
Alias
ALIas:DEFINE <QString><Comma>{ <QString> | <Block> }
ALIas:DEFINE? <QString>
ALIas
:
DEFINE
<Comma><QString><Space>
<QString>
<Block>
<QString>
<Space>
?
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 12 characĆ
ters.
The second <QString> or <Block> is a complete sequence of program
messages. The messages can contain only valid commands separated by
semicolons and following all rules for concatenating commands (see
pageĂ2Ć4). The sequence must be 80 characters.
NOTE
Attempting to give two aliases the same name causes an execution
error. To give a new alias the name of an existing alias, you must first
delete the existing alias.
ALIAS:DEFINE ”ST1”,”:RECALL:SETUP 5;:AUTOSET EXECUTE;:SE-
LECT:CH1 ON”
defines an alias named ST1" that sets up the oscilloscope.
ALIAS:DEFINE? ”ST1”
might return :ALIAS:DEFINE ”ST1”,#239:RECALL:SETUP 5;:AU-
TOSET EXECUTE;:SELECT:CH1 ON
Group:
Syntax:
Arguments:
Examples: