User manual

*CLS — Clear Status Clear status registers and error queue
Description
Use the *CLS command to clear (reset to 0) the bits of the following registers in the Model
2000:
Standard Event Register
Operation Even Register
Error Queue
Measurement Event Register
Questionable Event Register
This command also forces the instrument into the operation complete command idle state
and operation complete query idle state.
*ESE <NRf> — Event Enable Program the standard event enable register
*ESE? — Event Enable Query Read the standard event register
Parameters
<NRf> = 0 Clear register
1Set OPC (B0)
4 Set QYE (B2)
8 Set DDE (B3)
16 Set EXE (B4)
32 Set CME (B5)
64 Set URQ (B6)
128 Set PON (B7)
255 Set all bits
Description
Use the *ESE command to program the Standard Event Enable Register. This command
is sent with the decimal equivalent of the binary value that determines the desired state (0
or 1) of the bits in the register. This register is cleared on power-up.
This register is used as a mask for the Standard Event Register. When a standard event
is masked, the occurrence of that event will not set the Event Summary Bit (ESB) in the Sta
-
tus Byte Register. Conversely, when a standard event is unmasked (enabled), the occur-
rence of that event sets the ESB bit. For information on the Standard Event Register and
descriptions of the standard event bits see the next section.
A cleared bit (0) in the enabled register prevents (masks) the ESB bit in the Status Byte
Register from setting when the corresponding standard event occurs. A set bit (1) in the en
-
able register allows (enables) the ESB bit to set when the corresponding standard event oc-
curs.
The Standard Event Enable Register is shown in Figure 4-13 and includes the decimal
weight of each bit. The sum of the decimal weights of the bits that you wish to be set is the
2000-900 (J - Aug 2010) BOOK.fm Page 40 Wednesday, October 12, 2011 12:29 PM