B-6
Frequently Asked Questions
Series 2600 System SourceMeters User’s Manual
2600S-900-01 Rev. A / May 2006
Return to
How do I generate a service request?
Reference
Refer to “Status byte and service request (SRQ)” and additional
information in Appendix D of the Series 2600 Reference Manual for
status model and service request details.
Setting up a service request
The exact programming steps necessary to generate a GPIB service request
(SRQ) will vary somewhat depending on the event(s) intended to generate the
SRQ. In general, the steps used will be as follows:
• Clear all status registers to prevent anomalous events from generating an
SRQ.
• Set bits in the appropriate operation: questionable, measurement enable,
or transition register(s).
• Set the proper summary bit in the service request enable register. At least
one bit in this register must always be set, but the exact bit(s) to be set will
depend on the desired SRQ event(s).
Service request programming example
The example below shows how to program the SourceMeter to generate an SRQ
when the current limit on Channel A is exceeded.
status.reset()
--Clear all registers.
status.measurement.current_limit.enable
= status.measurement.current_limit.SMUA
--Enable current limit bit in
current limit register.
status.measurement.enable =
status.measurement.ILMT
--Enable status measure
current limit bit.
status.request_enable = status.MSB
--Enable status SRQ MSB.
Polling for SRQs
To determine if the SourceMeter is the GPIB device that generated the SRQ,
simply serial poll the unit for the status byte, and test to see if the corresponding
summary bit or bits are set. For example, the following commands request the
status byte and prints the result:
status_byte = status.condition
print(status_byte)
Содержание SourceMeter 2611
Страница 103: ...W What is a script 3 2...
Страница 104: ......
Страница 106: ......
Страница 107: ......