Because the SCPI parser is case-insensitive, there is some confusion over the letter "M" (or
"m"). For your convenience, the instrument interprets "mS" (or "MS") as milliseconds, but
"MHZ" (or "mhz") as megahertz. You can use the prefix "MA" for mega. For example, "MAS" is
interpreted as megaseconds.
Discrete Parameters
Discrete parameters are used to program settings that have a limited number of values (like IMMediate,
EXTernal, or BUS). They have a short form and a long form just like command keywords. You can mix
upper- and lower-case letters. Query responses will always return the short form in all upper-case letters.
The following command requires a discrete parameters for the temperature units:
INPut:LEVel:AUTO {OFF | ON | ONCE}
Boolean Parameters
Boolean parameters represent a single binary condition that is either true or false. For a false condition,
the instrument will accept "OFF" or "0". For a true condition, the instrument will accept "ON" or "1".
When you query a boolean setting, theinstrument will always return "0" or "1". The following command
requires a boolean parameter:
INPut:NREJect {OFF | 0 | ON | 1}
ASCII String Parameters
String parameters can contain virtually any set of ASCII characters. A string must begin and end with
matching quotes; either with a single quote or a double quote. You can include the quote delimiter as part
of the string by typing it twice without any characters in between. The following command uses a string
parameter:
DISPlay:TEXT <quoted string>
For example, the following command displays the message "WAITING..." on the instrument's front panel
(the quotes are not displayed).
DISP:TEXT "WAITING..."
You can also display the same message using the following command with single quotes.
DISP:TEXT 'WAITING...'
Using Device Clear
Device Clear is an IEEE-488 low-level bus message that you can use to return the instrument to a respons-
ive state. Different programming languages and IEEE-488 interface cards provide access to this capability
through their own unique commands. The status registers, theerror queue, and all configuration states
are left unchanged when aDevice Clear message is received.
Keysight 53220A/53230A Programmer's Reference 15
Introduction to the SCPI Language