Command groups
Status and Err
or command group
Use the commands in the Status and Error command Group to determine the
status of the instrument and control events.
Several commands and queries used with the instrument are common to all
devices. The IEEE Std 488.2-1987 defines these commands and queries. The
common comm
ands begin with an asterisk (*) character.
Table 2-39: Status and Error commands
Command
Description
ALLEv?
Returns all events and their m essages.
BUSY?
Returns instrument status.
*CLS Clears status.
DESE Sets or queries the bits in the D evice Event Status Enable Register.
*ESE Sets or queries the bits in the Event Status Enable Register.
*ESR? Returns the contents of the Standard Event Status Register.
EVENT? Returns event code from the event queue.
EVMsg? Returns event code, message from the event queue.
EVQty? Returns number of events that are enabled in the queue.
*OPC Generates the operation complete message in the standard event status register
when all pending operations are finished
Or returns “1” when all current operations are finished.
*OPT? Returns a comma separated list of installed options as an arbitrary ASCII string
(no quotes).
*PSC Sets or queries the power on status flag.
*PUD Sets or queries a string of protected user data.
*RST Resets the instrument to factory default settings.
*SRE Sets or queries the bits in the Service Request Enable Register.
*STB? Returns the contents of the S tatus Byte Register.
*WAI Prevents the instrument from executing further commands until all pending
operations finish.
MSO54, MSO56, MSO58, MSO58LP Programmer 2-75