
Appendix B: Common commands
Model 2450 Interactive SourceMeter® Instrument Reference Manual
B-4
2450-901-01 Rev. B/September 2013
*ESR?
This command reads and clears the contents of the Standard Event Status Register.
Type
Affected by
Where saved
Default value
Query only
Usage
*ESR?
Details
The instrument returns a decimal value that corresponds to the binary-weighted sum of all bits set in the register.
Bit
Decimal
value
Constant
When set, indicates the following has
occurred:
0
1
status.standard.OPC
All pending selected instrument operations are
complete and the instrument is ready to accept
new commands. The bit is set in response to an
page 8-77) function.
1
2
Not used
Not used.
2
4
status.standard.QYE
Attempt to read data from an empty Output
Queue.
3
8
status.standard.DDE
An instrument operation did not execute properly
due to an internal condition.
4
16
status.standard.EXE
The instrument detected an error while trying to
execute a command.
5
32
status.standard.CME
A command error has occurred. See information
following this table for descriptions of command
errors.
6
64
status.standard.URQ
The instrument transitioned from remote control
to local control.
7
128
status.standard.PON
The instrument has been turned off and turned
back on since the last time this register was read.
Command errors include:
•
IEEE Std 488.2 syntax error:
The instrument received a message that does not follow the defined
syntax of the IEEE Std 488.2 standard.
•
Semantic error:
The instrument received a command that was misspelled or received an optional IEEE
Std 488.2 command that is not implemented in the instrument.
•
GET error:
The instrument received a Group Execute Trigger (GET) inside a program message.
Example
*ESR?
Might return the value
149
, showing that the Standard Event Status
Register contains binary
10010101
Also see
(on page C-1)