
Program Header
Program headers can be sent using any combination of uppercase or
Options
lowercase ASCII characters. Instrument responses, however, are always
returned in uppercase.
Both program command and query headers may be sent in either
(complete spelling), shortform (abbreviated spelling), or any
combination of
and shortform. Either of the following examples
turns the headers and
on.
OUTPUT XXX;" :SYSTEM:HEAOER
ON"
OUTPUT
ON"
shortform
Programs written in
are easily read and are almost
self-documenting. The shortform syntax conserves the amount of
controller memory needed for program storage and reduces the amount
of I/O activity.
The rules for shortform syntax are shown in chapter 4 “Programming and
Note
Conventions.”
Parameter Syntax
There are three main types of data which are used in parameters. They
Rules
are numeric, string, and keyword. A fourth type, block data, is used
for five instructions: the DATA and
instructions in the
subsystem (see chapter 6) and the
instructions in the
subsystem (see chapter 7). These syntax
rules also show how data may be formatted when sent back from the
HP
as a response.
The parameter list always follows the instruction header and is separated
from it by white space. When more than one parameter is used, they are
separated by commas. You are allowed to include one or more spaces
around the commas, but it is not mandatory.
introduction to Programming an Instrument
1-8
HP
Programming Reference