9-16 Programmer’s Guide
Introduction to SCPI
IEEE 488.2 Common Commands
IEEE 488.2 Common Commands
IEEE 488.2 defines a set of common commands. All instruments are
required to implement a subset of these commands, specifically those
commands related to status reporting, synchronization and internal
operations. The rest of the common commands are optional. The
following list details which of these IEEE 488.2 common commands are
implemented in the analyzer and the response of the analyzer when the
command is received.
*CLS Clears the instrument Status Byte by emptying the
error queue and clearing all event registers, also
cancels any preceding *OPC command or query (does
not change the enable registers or transition filters).
*ESE <num> Sets bits in the Standard Event Status Enable Register
— current setting is saved in non-volatile memory.
*ESE? Reads the current state of the Standard Event Status
Enable Register.
*ESR? Reads and clears the current state of the Standard
Event Status Register.
*IDN? Returns a string that uniquely identifies the analyzer.
The string is of the form
"HEWLETT-PACKARD,8712,<serial number>,<software
evision>"
*LRN? This returns a string of device specific characters that,
when sent back to the analyzer will restore the
instrument state active when *LRN? was sent. Data
formatting (ENTER USING "-K" in HP BASIC) or a
similar technique should be used to ensure that the
transfer does not terminate on a carriage return or line
feed (both
C
R
and
L
F
are present in the learn string as
part of the data).