Programming instructions

Programming the Status Register System
Status Groups
Chapter 3 117
Standard Event Status Register
Table 3-4 Standard Event Status Register Bits
Bit Description
0 Operation Complete. A 1 in this bit position indicates that all pending signal generator
operations were completed following execution of the *OPC command.
1 Request Control. This bit is always set to 0. (The signal generator does not request control.)
2 Query Error. A 1 in this bit position indicates that a query error has occurred. Query errors
have SCPI error numbers from 499 to 400.
3 Device Dependent Error. A 1 in this bit position indicates that a device dependent error has
occurred. Device dependent errors have SCPI error numbers from 399 to 300 and 1 to 32767.
4 Execution Error. A 1 in this bit position indicates that an execution error has occurred.
Execution errors have SCPI error numbers from 299 to 200.
5 Command Error. A 1 in this bit position indicates that a command error has occurred.
Command errors have SCPI error numbers from 199 to 100.
6 User Request Key (Local). A 1 in this bit position indicates that the
Local key has been
pressed. This is true even if the signal generator is in local lockout mode.
7 Power On. A 1 in this bit position indicates that the signal generator has been turned off and
then on.
Query: *ESR?
Response: The decimal sum of the bits set to 1
Example: The decimal value 136 is returned. The decimal sum = 128 (bit 7) + 8 (bit 3).