Remote Operation 12-11
Programming syntax
The following paragraphs cover syntax for both common commands and SCPI commands.
For more information, see the IEEE- 488.2 and SCPI standards.
Command words
Program messages are made up of one or more command words.
Commands and command parameters
Common commands and SCPI commands may or may not use a parameter. The following
are some examples:
*SAV <NRf> Parameter (NRf) required.
*RST No parameter used.
:DISPlay:ENABle <b> Parameter <b> required.
:SYSTem:PRESet No parameter used.
Put at least one space between the command word and the parameter.
• Brackets [ ] — Some command words are enclosed in brackets ([ ]). These brackets are
used to denote an optional command word that does not need to be included in the pro-
gram message. For example:
:INITiate[:IMMediate]
These brackets indicate that :IMMediate is implied (optional) and does not have to be
used. Thus, the above command can be sent in one of two ways:
:INITiate or :INITiate:IMMediate
Notice that the optional command is used without the brackets. When using optional
command words in your program, do not include the brackets.
•Parameter types — The following are some of the common parameter types:
<b> Boolean — Used to enable or disable an instrument operation. 0 or OFF
disables the operation, and 1 or ON enables the operation.
:DISPlay:ENABle ON Enable the display
<name> Name parameter — Select a parameter name from a listed group.
<name> = NEVer
= NEXT
:CALCulate:FORMat MXB Select Mx + B calculation
<NRf> Numeric representation format — A number that can be expressed as an
integer (e.g., 8) a real number (e.g., 23.6) or an exponent (2.3E6).
:TRACe:POINts 20 Set buffer size to 20