User`s guide
76 53220A/53230A User’s Guide
3 53220A/53230A Measurements
Multiple Subsystems To send multiple SCPI commands in a single string,
commands within different subsystems (root nodes) must be separated by a
semicolon (;) and a colon (:). For example, the string:
INP:COUP AC;:TRIG:SOUR EXT
requires a semicolon and a colon because the subsystems/root nodes (INPut
and TRIGger) are not the same.
Same Subsystem For commands that share the same subsystem, multiple
commands can also be sent in a single string. The first command references
the root node, and subsequent commands separated by semicolons, are refer-
enced to the same level as the previous command. As an example, the com-
mand sequence representing the CALCulate2 subsystem:
CALC2:TRAN:HIST:STAT ON
CALC2:TRAN:HIST:POIN 15
CALC2:TRAN:HIST:RANG:AUTO ON
CALC2:TRAN:HIST:RANGe:AUTO:COUNt 300
can be sent in a string as:
CALC2:TRAN:HIST:STAT ON;POIN 15;RANG:AUTO ON;AUTO:COUN 300
Separate Command Lines or Strings? Sending commands in a single string
rather than in separate command lines can eliminate “settings conflict” errors.
When sent on separate lines, the counter checks for errors as each command
(line) is parsed. When sent as a string, the entire string is parsed before error
conditions are checked.
Linking IEEE 488-2 Common Commands and SCPI Commands
In a command string containing both IEEE 488.2 common commands (e.g.
*RST, *WAI, *OPC?) and SCPI instrument commands, the common commands
are separated from the SCPI commands by a semicolon (;). An example is
shown in the following string:
CALC:STAT ON;AVER:STAT ON;:INIT;*WAI;:CALC:AVER:AVER?