9 Programming the Instrument
9.2 IEEE 488.2 Common Commands
Example
*CAL?
Runs a full alignment and returns 0 if no problems encountered
Status Bits/OPC depend-
encies
See "Align Now All" on page 2110
9.2.2 *CLS - Clear Status
Clears the "Status Byte Register" on page 2781, by emptying the error queue and
clearing all bits in all of the event registers, and consequently all bits in the Status
Byte Register.
The Status Byte Register summarizes the states of the other registers. It is also
responsible for generating service requests.
Remote
Command
*CLS
Example
*CLS
Clears the error queue and the Status Byte Register
Notes For related commands, see :SYSTem:ERRor[:NEXT]?
See also :STATus:PRESet and all commands in the "Status Register System & STATus Subsystem"
on page 2772
Status Bits/OPC
dependencies
Resets all bits in all event registers to 0, which resets all the status byte register bits to 0 also
9.2.3 *ESE - Standard Event Status Enable
Sets the desired bits in the Event Enable sub-register of the "Standard Event Status
Register" on page 2785, which enables the corresponding bits in the Standard Event
Status Register. This register monitors I/O errors and synchronization conditions
such as operation complete, request control, query error, device-dependent error,
status execution error, command error, and power on. The selected bits are ORed to
become a summary bit (bit 5) in the "Status Byte Register" on page 2781, which can
be queried.
The query returns the state of this register.
Numeric values for bit patterns can be entered using decimal or hexadecimal
representations (0 to 32767, equivalent to #H0 to #H7FFF).
Remote
Command
*ESE <integer>
*ESE?
Example
*ESE 36
Enables the Standard Event Status Register to monitor query and command errors (bits 2 and 5)
2745 Spectrum Analyzer Mode User's &Programmer's Reference