HP 4155A/4156A SCPI Programming
SCPI Programming Basics
SCPI Command Hierarchy
SCPI commands use a hierarchical structure for subsystem commands similar
to the le system.
For example,in
:PAGE:MEASURE:SWEEP
command, the hierarchy is as
follows:
PAGE
root
MEASURE
sub-level 1
SWEEP
sub-level 2
The colon at the beginning of the command means root.
The colons between two command keywords means moving down to a lower
level.
Using a Semicolon to Reduce Typing
A semicolon enables two commands to be sent on the same line
.
For example,
:PAGE:MEAS:VAR1:START 0;STOP 5
is the same as the following two
commands:
:PAGE:MEAS:VAR1:START 0
:PAGE:MEAS:VAR1:STOP 5
So, using a semicolon reduces typing and simplies the program.
A command terminator (such as a
<newline>
) resets the path to root.
4-5