Setting And Querying The Registers; Using The Service Request (Srq) Method - HP ESA-E Series Programmer's Manual

Esa spectrum analyzers
Table of Contents

Advertisement

HP ESA Status Registers
Using the Analyzer Status Registers
• Monitor a change in the condition of a particular bit, or bits.

Setting and Querying the Registers

Each bit in a register is represented by a numerical value based on its
location. See
to enable a particular bit. If you want to enable more than one bit, you
would send the sum of all the bits that you are interested in.
For example, to enable bit 0 and bit 6 of standard event status register,
you would send the command *ESE 65 (1 + 64 = 65).
The results of a query are evaluated in a similar way. If the *STB?
command returns a decimal value of 140, (140 = 128 + 8 + 4) then the
bit 7 is true, bit 3 is true and bit 2 is true.
Figure 2-1
Status Register Bit Values
Bit Number

Using the Service Request (SRQ) Method

Your language, bus and programming environment must be able to
support SRQ interrupts. (For example, BASIC used with the GPIB.)
When you monitor a condition with the SRQ method, you must:
1. Determine which bit monitors the condition.
2. Determine how that bit reports to the request service (RQS) bit of
2-4
Once you have enabled a bit, the analyzer will monitor it for a
change in its condition. The transition registers are preset to
register the conditions going from 0 to 1, positive transitions. This
can be changed so that the selected bit is detected if it goes from true
to false (negative transition), or if either transition occurs. Querying
the event register allows you to detect that a change in this condition
occurred. The event register can only be cleared by querying it or
sending the *CLS command, which clears all event registers.
Figure 2-1
15
14
13
12
11
10
the status byte.
below. This number is sent with the command,
9
8
6 5 4 3 2 1 0
7
ck730a
Chapter 2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents