![HP E4401B Programmer'S Manual Download Page 34](http://html.mh-extra.com/html/hp/e4401b/e4401b_programmers-manual_161548034.webp)
2-4
Chapter 2
HP ESA Status Registers
Using the Analyzer Status Registers
• Monitor a change in the condition of a particular bit, or bits.
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.
Setting and Querying the Registers
Each bit in a register is represented by a numerical value based on its
location. See
below. This number is sent with the command,
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
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
the status byte.
Bit Number
7
8
9
10
11
12
13
14
15
6 5 4 3 2 1 0
2048
512
32 16
4
8
1
16384 8192 4096
1024
128
256
64
Decimal
Value
32768
2
ck730a
Summary of Contents for E4401B
Page 6: ...vi ...
Page 14: ...xiv Contents ...
Page 64: ...2 34 Chapter2 HP ESA Status Registers Using the Analyzer Status Registers ...
Page 65: ...3 1 3 Programming Examples ...
Page 151: ...4 1 4 Programming Command Cross References ...
Page 286: ...5 132 Chapter5 Language Reference UNIT Subsystem ...
Page 287: ...6 1 6 HP 8590 HP ESA Spectrum Analyzers Programming Conversion Guide ...
Page 292: ...1 HP 8590 HP ESA Spectrum Analyzers Conversion Guide ...
Page 368: ...7 1 7 Error Messages ...
Page 393: ...7 26 Chapter7 Error Messages 201 to 799 Device Specific Errors ...