Chapter 3 121
Programming the Status Register System
Accessing Status Register Information
device that requested service.
NOTE When you read the signal generator’s Status Byte Register with a serial poll, the RQS bit is
reset to 0. Other bits in the register are not affected.
If the status register is configured to SRQ on end-of-sweep or measurement and the mode
set to continuous, restarting the measurement (INIT command) can cause the measuring bit
to pulse low. This causes an SRQ when you have not actually reached the “end-of-sweep”
or measurement condition. To avoid this, do the following:
1. Send the command INITiate:CONTinuous OFF.
2. Set/enable the status registers.
3. Restart the measurement (send INIT).
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.)