Programming instructions
Programming the Status Register System
Accessing Status Register Information
Chapter 3110
Status Register SCPI Commands
Most monitoring of signal generator conditions is done at the highest level, using the IEEE
488.2 common commands listed below. You can set and query individual status registers using
the commands in the STATus subsystem.
*CLS (clear status) clears the Status Byte Register by emptying the error queue and
clearing all the event registers.
*ESE, *ESE? (event status enable) sets and queries the bits in the Standard Event Enable
Register which is part of the Standard Event Status Group.
*ESR? (event status register) queries and clears the Standard Event Status Register
which is part of the Standard Event Status Group.
*OPC, *OPC? (operation complete) sets bit #0 in the Standard Event Status Register to 1
when all commands have completed. The query stops any new commands from being
processed until the current processing is complete, then returns a 1.
*PSC, *PSC? (power-on state clear) sets the power-on state so that it clears the Service
Request Enable Register, the Standard Event Status Enable Register, and device-specific
event enable registers at power on. The query returns the flag setting from the *PSC
command.
*SRE, *SRE? (service request enable) sets and queries the value of the Service Request
Enable Register.
*STB? (status byte) queries the value of the status byte register without erasing its
contents.
:STATus:PRESet presets all transition filters, non-IEEE 488.2 enable registers, and
error/event queue enable registers. (Refer to Table 3-2.)