UNI-T
UPO 3000E&UPO2000E Series Oscilloscope Programming Manual
SCPI
SCPI was defined as an additional layer on top of the IEEE 488.2-1987 specification
"Standard Codes, Formats, Protocols, and Common Commands".The standard
specifies a common syntax, command structure, and data formats, to be used with all
instruments. It introduced generic commands (such as CONFigure and MEASure) that
could be used with any instrument. These commands are grouped into subsystems.
SCPI also defines several classes of instruments. For example, any controllable power
supply would implement the same DCPSUPPLY base functionality class. Instrument
classes specify which subsystems they implement, as well as any instrument-specific
features.
The physical hardware communications link is not defined by SCPI. While it was
originally created for the IEEE-488.1 (GPIB) bus, SCPI can also be used with RS-232,
RS-422, Ethernet, USB, VXIbus, HiSLIP, etc.
SCPI commands are ASCII textual strings, which are send to the instrument over the
physical layer (e.g., IEEE-488.1). Commands are a series of one or more keywords,
many of which take parameters. In the specification, keywords are written
CONFigure: The entire keyword can be used, or it can be abbreviated to just the
uppercase portion. Responses to Query commands are typically ASCII strings.
However, for bulk data, binary formats can be used.
This section introduces the format, symbols, parameters, and abbreviations of the
SCPI command.
Instruction Format
The SCPI command is a tree-like hierarchy consisting of multiple subsystems, each
consisting of a root keyword and one or more hierarchical key words.
The command
line usually begins with a colon ":"; Keywords are separated by the colon ":",
followed by optional parameter settings. The command keyword is separated by
spaces from the first parameter. The command string must end with a newline
<NL>
character. Add the question mark "? " after the command line. It is
usually indicated that this feature is being queried.
Symbol Description
The following four symbols are not part of SCPI command, it cannot send with the
command. It usually used as supplementary description of command parameter.
Brace { }
usually contains multiple optional parameters, it should select one
parameter when send command.
Such as
DISPlay:GRID:MODE { FULL | GRID | CROSS | NONE}
command