5 SCPI Programming Reference
IEEE-488 Common Commands
IEEE-488 Common commands generally control overall instrument functions, such as reset, status,
and synchronization. All common commands consist of a three-letter mnemonic preceded by an
asterisk: *RST *IDN? *SRE 8.
*CLS
Clear status command. Clear Status Command. Clears the
clears the status byte and error queue. If *CLS immediately follows a program message terminator
(<NL>), then the output queue and the MAV bit are also cleared. Refer to
information.
Parameter
(none)
Clear event registers, status byte, and error queue: *CLS
*ESE <value>
*ESE?
Event status enable command and query. Sets the value in the
Status
group. Each set bit of the register enables a corresponding event. All enabled events are
logically ORed into the ESB bit of the status byte. The query reads the enable register. Refer to
Tutorial
for more information.
Parameter
A decimal value corresponding to the binary-weighted
sum of the register's bits.
Enable bits 3 and 4 in the enable register: *ESE 24
The value returned is the binary-weighted sum of all enabled bits in the register. For example, with
l
bit 2 (value 4) and bit 4 (value 16) set, the query returns +20.
Any or all conditions can be reported to the ESB bit through the enable register. To set the enable
l
register mask, write a decimal value to the register using *ESE.
*CLS does not clear the enable register, but does clear the
l
*ESR?
Event status event query. Reads and clears the
The event register is a read-only register, which latches all standard events. Refer to
for more information.
208
event registers
Typical Return
(none)
enable register
Typical Return
<bit value>
event
register.
event register
for the
Standard Event Status
Keysight RP7900 Series Operating and Service Guide
in all register groups. Also
Status Tutorial
for more
for the
Standard Event
Status
group.
Status Tutorial