![Keithley 6482 Reference Manual Download Page 172](http://html1.mh-extra.com/html/keithley/6482/6482_reference-manual_4059393172.webp)
6482-901-01 Rev. A / August 2012
Return to
13-9
Model 6482 Dual-Channel Picoammeter / Voltage Source Reference Manual
Section 13: Status Structure
Programming example: Set MSS (B6) when error occurs
The first commands of the sequence in
clears the error queue and programs the
service request enable register to 4. When an invalid command is sent (line 4), bits B2 (EAV) and
B6 (MSS) of the status byte register set to 1. The last command reads the status byte register
using the binary format (which directly indicates which bits are set). The command to select format
(FORMat:SREGister) is documented in
. To determine the exact nature of the error, you
will have to read the error queue. Refer to
Status register sets
As shown in
, there are four status register sets in the status structure of the
Model 6482: Standard Event Status, Operation Event Status, Measurement Event Status, and
Questionable Event Status.
NOTE
See
for details on which register bits are set by specific error and status
conditions.
Register bit descriptions
Standard event register
The used bits of the standard event register (shown in
) are described as follows:
Table 13-3
Status byte and service request enable register commands
Command Description
*STB?
*SRE <NDN> or <NRf>
*SRE?
Read Status Byte Register.
Program the Service Request Enable Register:
<NDN> = #Bxx…x
Binary format (each x = 1 or 0)
= #Hx
Hexadecimal format (x = 0 to FF)
= #Qx
Octal format (x = 0 to 377)
<NRf> = 0 to 255
Decimal format
Read the Service Request Enable Register
Note: *CLS and STATus:PRESet have no effect on the service request enable register.
Table 13-4
Status byte programming example
Command
Description
*CLS
*SRE 4
FORM:SREG BIN
*XYZ
*STB?
Clear error queue.
Programs service request enable register
Select binary format.
Generate error.
Read status byte register.
Summary of Contents for 6482
Page 3: ......