Program Header
Options
Note d D
Parameter Syntax
Rules
introduction to Programming an Instrument
1-8
Program headers can be sent using any combination of uppercase or
lowercase ASCII characters. Instrument responses, however, are always
returned in uppercase.
Both program command and query headers may be sent in either
combination of lcngform and shortform. Either of the following examples
turns the headers and longform on.
OUTPUT
XXX;" :SYSTEM:HEAOER
OUTPUT XXX;":SYST:HEAD
Programs written in longform 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
There are three main types of data which are used in parameters. They
are numeric, string, and keyword. A fourth type, block data, is used only
for five instructions: the DATA and SETup instructions in the SYSTem
subsystem (see chapter 6) and the CATalog, UPLoad, and DOWNload
instructions in the MMEMory subsystem (see chapter 7). These syntax
rules also show how data may be formatted when sent back from the
HP 1650B/51B 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.
ON"
ON"
shortform
HP 1850B/HP 18518
Programming Reference