Subsystem Commands
Each subsystem set of commands are grouped together under a common
node of the command tree, such as the :TIMebase commands. Only one
subsystem may be selected at any given time. When the instrument is initially
turned on, the command parser is set to the root of the command tree, so no
subsystem is selected.
Tree Traversal Rules
Command headers are created by traversing down the command tree. A legal
command header from the command tree would be :TIMebase:RANGe. This
is called a compound header. A compound header consists of two or more
mnemonics separated by colons. The created mnemonic contains no spaces.
The following rules apply to traversing the tree:
•
A leading colon or a <program message terminator> (either an <NL> or
EOI true on the last byte) places the parser at the root of the command
tree. The leading colon is the first character of a program header.
•
Executing a subsystem command places the logic analyzer in that
subsystem until a leading colon or a <program message terminator> is
found. In the command tree, use the last mnemonic in the compound
header as a reference point (for example, RANGe). Then find the last
colon above that mnemonic (TIMebase:). That is the point where the
parser resides. You can send any command below that point within the
current program message (for example, DELay) without sending the
mnemonics that appear above them.
Examples
The OUTPUT statements in the examples are written using HP BASIC. The
quoted string is placed on the bus, followed by a carriage return and linefeed
(CRLF).
Example 1:
OUTPUT 707;":TIMEBASE:RANGE 0.5 ;DELAY 0"
The colon between TIMEBASE and RANGE is necessary because
TIMEBASE:RANGE is a compound command. The semicolon between the
RANGE command and the DELAY command is the required program
message unit separator. The DELAY command does not need TIMEBASE
preceding it because the TIMEBASE:RANGE command sets the parser to the
TIMEBASE node in the tree.
Programming and Documentation Conventions
The command tree
54
Содержание 54620A
Страница 6: ...6 ...
Страница 9: ...1 Introduction to Programming ...
Страница 21: ...2 Programming Getting Started ...
Страница 35: ...3 Programming over HP IB ...
Страница 40: ...40 ...
Страница 41: ...4 Programming over RS 232 C ...
Страница 48: ...48 ...
Страница 49: ...5 Programming and Documentation Conventions ...
Страница 53: ...Programming and Documentation Conventions The command tree 53 ...
Страница 60: ...60 ...
Страница 61: ...6 Status Reporting ...
Страница 63: ...Status Reporting Data Structures Figure 4 Status Reporting 63 ...
Страница 68: ...68 ...
Страница 69: ...7 Installing and Using the Programmer s Reference ...
Страница 76: ...76 ...
Страница 77: ...8 Programmer s Quick Reference ...