
The Command
The command tree (figure 4-l) shows all commands in the HP
Tree
logic analyzers and the relationship of the commands to each other.
Parameters are not shown in this figure. The command tree allows you to
see what the HP
parser expects to receive. All legal headers
be created by traversing down the tree, adding keywords until the end
of a branch has been reached.
Command Types
As shown in chapter l’s “Header Types” section, there are three types of
headers. Each header has a corresponding command type. This section
shows how they relate to the command tree.
System Commands.
The system commands reside at the top level of the
command tree. These commands are always
if they occur at the
beginning of a program message, or are preceded by a colon. START and
STOP are examples of system commands.
Subsystem Commands.
Subsystem commands are grouped together
under a common node of the tree, such as the MMEMORY commands.
Common Commands.
Common commands are independent of the tree,
and do not affect the position of the parser within the tree.
and
*RST are examples of common commands.
Tree Traversal Rules
Command headers are created by traversing down the command tree. For
each group of keywords not separated by a branch, one keyword must be
selected. As shown
on
the tree, branches are always preceded by colons.
Do not add spaces around the colons. The following two rules apply to
traversing the tree:
A leading colon (the
character of a header) or a <terminator
places the parser at the root of the command tree.
Executing a subsystem command places you in that subsystem (until a
leading colon or a terminator is found). The parser will stay at the
colon above the keyword where the last header terminated. Any
command below that point can be sent within the current program
message without sending the keywords(s) which appear above them.
Examples
The following examples are written using HP BASIC 4.0 on a HP
Series
Controller. The quoted string is placed on the bus,
followed by a carriage return and
(CRLF).
Programming and Documentation Conventions
HP
16518
4-4
Programming Reference
Содержание 1650B
Страница 2: ......
Страница 16: ......
Страница 40: ......
Страница 48: ......
Страница 58: ......
Страница 74: ......
Страница 76: ...System Commands 6 2 Figure 6 l System Commands Syntax Diagram HP 1650B HP 1651B Programming Reference ...
Страница 112: ......
Страница 128: ......
Страница 134: ......
Страница 160: ......
Страница 184: ... L h E I Figure 13 1 SLlSt Subsystem Syntax Diagram SLIST Subsystem 13 2 HP 165081HP Is5 B Programming Reference ...
Страница 185: ...Figure 13 l SLlSt Subsystem Syntax Diagram continued HP 1650B HP 16518 Programming Reference SLIST Subsystem 13 3 ...
Страница 210: ......
Страница 236: ......
Страница 282: ......
Страница 318: ......
Страница 336: ......
Страница 346: ......