Subsystem Command
Trees
The Command Tree Structure
Most programming tasks involve subsystem commands. SCPI uses
a hierarchical structure for subsystem commands similar to the file
systems on most computers. In SCPI, this command structure is
called a
command tree.
r o o t
level 1
I
I
BB
c c
level 2
EE FF GG
H H
Figure l-25. A Simplified Command Tree
JJ
In the command tree shown in Figure l-25, the command closest to
the top is the
root command,
or simply the
root.
Notice that you
must follow a particular
to reach lower level subcommands. For
example, if you wish to access the
command, you must follow the
path
AA
to
BB
to
Paths Through the Command Tree
To access commands in different paths in the command tree, you
must understand how an instrument interprets commands. A special
part of the instrument firmware, a
parser,
decodes each message sent
to the instrument. The parser breaks up the message into component
commands using a set of rules to determine the command tree path
used. The parser keeps track of the
current path,
the level in the
command tree where it expects to find the next command you send.
This is important because the same keyword may appear in different
paths. The particular path you use determines how the keyword is
interpreted. The following rules are used by the parser:
Power On and Reset
After power is cycled or after
the current path is set to the
root.
n
Message Terminators
A message terminator, such as a <new line> character, sets the
current path to the root. Many programming languages have
output statements that send message terminators automatically.
The paragraph titled, “Details of Commands and Responses,”
discusses message terminators in more detail.
1-68 Getting Started Programming
Содержание HP 8360 L Series
Страница 134: ...L 2i D u o ov P D P D cn B j g z e VJ g d m 5 ...
Страница 215: ...HP IB Menu See Also CONNECTORS HP IB Getting Started Programming in Chapter 1 H 2 Operating and Programming Reference ...
Страница 347: ...Menu Maps Menu Maps 2b 1 ...
Страница 348: ......
Страница 349: ......
Страница 350: ......
Страница 351: ......
Страница 352: ......
Страница 353: ......
Страница 354: ......
Страница 355: ......
Страница 356: ......
Страница 405: ...5 Instrument History This chapter is left blank until this manual requires changes Instrument History 5 l ...