![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750781.webp)
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Appendix E: Status model
2657A-901-01 Rev. B/December 2012
E-15
Reading registers
Any register in the status structure can be read either by sending the common command query
(where applicable), or by including the script command for that register in either the
() or
print(tostring())
command. The
print()
command outputs a numeric value; the
print(tostring())
command outputs the string equivalent. For example, any of the following
commands requests the Service Request Enable Register value:
*SRE?
print(tostring(status.request_enable))
print(status.request_enable)
The response message will be a decimal value that indicates which bits in the register are set. That
value can be converted to its binary equivalent using the information in
(on page E-14). For example, for a decimal value of 37 (binary value of 100101),
bits B5, B2, and B0 are set.
Status byte and service request (SRQ)
Service requests (SRQs) allow an instrument to indicate that it needs attention or that some event
has occurred. When the controller receives an SRQ, it allows the controller to interrupt tasks to
perform other tasks in order to address the request for service.
For example, you might program your instrument to send an SRQ when:
•
All instrument operations are complete
•
An instrument error occurs
•
A specific operation has occurred
Two 8-bit registers control service requests, the Status Byte Register and the Service Request
Enable Register. The
(on page E-15) topic describes the structure of these
registers.
Service requests affect GPIB and VXI-11 connections. On a GPIB connection, the SRQ line is
asserted. On a VXI-11 connection, an SRQ event is generated.
Status Byte Register
The summary messages from the status registers and queues are used to set or clear the appropriate
bits (B0, B1, B2, B3, B4, B5, and B7) of the Status Byte Register. These summary bits do not latch,
and their states (0 or 1) are dependent upon the summary messages (0 or 1). For example, if the
Standard Event Register is read, its register will clear. As a result, its summary message will reset to
0, which will then reset the ESB bit in the Status Byte Register.
The Status Byte Register also receives summary bits from itself, which sets the Master Summary
Status, or MSS, bit.
Содержание 2657A
Страница 3: ......