Status Byte And Service Request Commands; Programming Example - Set Mss (B6) When Error Occurs - Keithley 2500 User Manual

Photodiode meter
Hide thumbs Also See for 2500:
Table of Contents

Advertisement

14-10
Status Structure

Status byte and service request commands

The commands to program and read the status byte register and service request enable reg-
ister are listed in
gramming enable registers," page
NOTE
Table 14-3
Status byte and service request enable register commands
Command
*STB?
*SRE <NDN> or <NRf>
*SRE?
Note: *CLS and STATus:PRESet have no effect on the service request enable register.

Programming example - set MSS (B6) when error occurs

The first command of sequence in
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
read the error queue. Refer to
Table 14-4
Status byte programming example
Command
*CLS
*SRE 4
FORM:SREG BIN
*XYZ
*STB?
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176
TestEquipmentDepot.com
Table
14-3. For details on programming and reading registers, see
To reset the bits of the service request enable register to 0, use 0 as the parame-
ter value for the *SRE command (i.e., *SRE 0).
Read Status Byte Register.
Program the Service Request Enable Register:
<NDN> = #Bxx...x
= #Hx
= #Qx
<NRf>
= 0 to 255
Read the Service Request Enable Register
Table
14-2. To determine the exact nature of the error, you will have to
"Queues."
Description
Clear error queue.
Enable EAV.
Select binary format.
Generate error.
Read status byte register.
Models 2500 and 2502 User's Manual
14-5, and
"Reading registers," page
Description
Binary format (each x = 1 or 0)
Hexadecimal format (x = 0 to FF)
Octal format (x = 0 to 377)
Decimal format
Table 14-4
enables EAV (error available). When an
"Pro-
14-6.
Default
Note

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

2502

Table of Contents