SCPI Command Structure and Syntax R&S SMB
1407.0806.32 5.10 E-2
2. According to their definition in standard IEEE 488.2 and SCPI:
Common Commands
are exactly defined as to their function and
notation in standard IEEE 488.2. They refer to
functions such as management of the
standardized status registers, reset and selftest.
Device-specific
Commands
refer to functions depending on the features of the
instrument such as frequency setting. A majority of
these commands has also been standardized by
the SCPI committee Device-specific extensions
following the SCPI rules are permitted by the
standard.
Device
responses
(Response
Messages and
Service Request)
are messages the instrument sends to the controller after a query. They can
contain measurement results, instrument settings and information on the
instrument status (cf. Section "Responses to Queries").
Structure and syntax of the device messages are described in the following Section.
SCPI Command Structure and Syntax
The commands consist of a so-called header and, in most cases, one or more parameters. The header
and parameter are separated by a "white space" (ASCII code 0 to 9, 11 to 32 decimal, e.g. blank). The
headers may consist of several key words. Queries are formed by directly appending a question mark
to the header.
Note:
The commands used in the following examples are not in every case implemented in the instrument.
Common Commands
Common commands consist of a header preceded by an asterisk "*" and one
or more parameters, if any.
Examples
:
*RST
RESET, resets the device
*ESE 253
EVENT STATUS ENABLE, sets the bits of the event
status enable register
*ESR?
EVENT STATUS QUERY, queries the contents of the
event status register.