Using The Service Request (Srq) Method; Generating A Service Request - Agilent Technologies ESA-E Series Programmer's Manual

Esa spectrum analyzers
Hide thumbs Also See for ESA-E Series:
Table of Contents

Advertisement

Status Register s
Use Status Registers to Determine the State of Analyzer Events and Condition s
-
you are monitoring more than one device which supports SRQ s
- you need to have the controller do something else while the analyze r
is making a measuremen t
- you can't afford the performance penalty inherent to pollin g
Using the Service Request (SRQ) Metho d
Your language, bus, and programming environment must be able to
support SRQ interrupts (for example, using C and C++ with the GPIB).
When you monitor a condition with the SRQ method, you mus t
establish the following parameters :
1. Determine which bit monitors the condition .
2. Determine how that bit reports to the request service (RQS) bit of
the status byte.
3. Send GPIB commands to enable the bits that monitor the condition
and to enable the summary bits that report the condition to the RQ S
bit.
4. Enable the controller to respond to service requests.
When the condition changes, the analyzer sets the RQS bit and th e
GPIB SRQ line . The controller is informed of the change as soon as i t
occurs. The time the controller would otherwise have used to monito r
the condition can now be used to perform other tasks . Your progra m
also determines how the controller responds to the SRQ.
Generating a Service Reques t
Before using the SRQ method of generating a service request, first
become familiar with how service requests are generated . Bit 6 of the
status byte register is the request service summary (RQS) bit . The RQS
bit is set whenever there is a change in the register bit that it has been
configured to monitor. The RQS bit will remain set until the condition
that caused it is cleared. It can be queried without erasing the contents
using the
*STS?
command . Configure the RQS function using the
*SIM
command .
When a register set causes a summary bit in the status byte to change
from 0 to 1, the analyzer can initiate the service request (SRQ) process .
However, the process is only initiated if both of the following condition s
are true :
• The corresponding bit of the service request enable register is als o
set to 1 .
• The analyzer does not have a service request pending . (A servic e
request is considered to be pending between the time the analyze r
SRQ process is initiated, and the time the controller reads the statu s
byte register.)
2-8
Chapter 2

Advertisement

Table of Contents
loading

Table of Contents