3-24
Programming
Reviewing SCPI Syntax Rules
OUTPUT 720;”:MEAS:SCAL:POW? MAX”
Programs written in long form are easily read and are almost self- doc-
umenting. Using short form commands conserves the amount of con-
troller memory needed for p rogram storage and reduces the amount of
I/O activity.
The rules for creating short forms from the long form is as follows:
The mnemonic is the first four characters of the keyword
unless
the
fourth character is a vowel, in which case the mnemonic is the first
three characters of the keyword.
This rule is
not
used if the length of the keyword is exactly four char-
acters.
You can use upper or lowercase letters
Program headers can be sent using any combination of uppercase or
lowercase ASCII characters. Instrument responses, however, are always
returned in uppercase.
Combine commands in the same subsystem
You can combine commands from the same subsystem provided that
they are both on the same level in the subsystem’s hierarchy. Simp ly
separate the commands with a semi- colon (;). For example, the follow-
ing two lines,
OUTPUT 720;”:CALC2:PEXC 12”
OUTPUT 720;”:CALC2:PTHR 20”
can be combined into one line:
OUTPUT 720;”:CALC2:PEXC 12;PTHR 20”
The semicolon sep arates the two functions.
Table 3-8. Examples of Short Forms
Long Form
Equivalent Short Form
ROUTE
ROUT
LAYER
LAY
SYSTEM
SYST
ERROR
ERR
Summary of Contents for 86120C
Page 12: ......
Page 26: ...1 14 Getting Started Returning the Instrument for Service ...
Page 27: ...1 15 Getting Started Returning the Instrument for Service ...
Page 28: ......
Page 96: ...3 18 Programming Monitoring the Instrument ...
Page 128: ...3 50 Programming Lists of Commands ...
Page 236: ...4 108 Programming Commands UNIT Subsystem ...
Page 248: ......
Page 264: ...6 16 Specifications and Regulatory Information Product Overview ...
Page 269: ...7 5 Reference Menu Maps Appl s Menu ...
Page 271: ...7 7 Reference Menu Maps Display List by WL Menu Delta On Menu ...
Page 273: ...7 9 Reference Menu Maps System Print Menu ...
Page 274: ...7 10 Reference Menu Maps System Setup Menu ...
Page 284: ......
Page 292: ......
Page 293: ......