202
Chapter 4
Status Registers
Use Status Registers to Determine the State of Analyzer Events and Conditions
S
ta
tus
R
e
gi
s
ters
NOTE
If you are using the status bits and the analyzer mode is changed, the status bits
should be read, and any error conditions resolved, prior to switching modes. Error
conditions that exist prior to switching modes cannot be detected using the
condition registers after the mode change. This is true unless they recur after the
mode change, although transitions of these conditions can be detected using the
event registers.
Changing modes resets all SCPI status registers and mask registers to their
power-on defaults. Hence any event or condition register masks must be
re-established after a mode change. Also note that the power up status bit is set by
any mode change, since that is the default state after power up.
Status Subsystem Commands
Individual status registers can be set and queried using the commands in the STATus subsystem in
Chapter 5, “Remote Command Reference.”
in this guide. There are two methods used to
programmatically detect and manage error conditions or changes in analyzer status. Either method
allows you to monitor one or more conditions. The two methods are:
•
The Polling Method
•
The Service Request (SRQ) Method
The Polling Method
In the polling method, the analyzer has a passive role. It only tells the controller that conditions have
changed when the controller asks the right question. The polling method works well if you do not need to
know about changes the moment they occur. This method is very efficient.
Use the polling method when either:
— your programming language/development environment does not support SRQ interrupts
— you want to write a simple, single-purpose program and don’t want the added complexity of setting
up an SRQ handler
The Service Request (SRQ) Method
The SRQ method allows timely communication of information without requiring continuous controller
involvement. Using this method, the analyzer takes a more active role. It tells the controller when there
has been a condition change without the controller asking. The SRQ method should be used if you must
know immediately when a condition changes. This is in contrast to the polling method, which requires
the program to repeatedly read the registers to detect a change.
Summary of Contents for ESA-E E4401B
Page 4: ...4 ...
Page 35: ...35 Using This Document 1 Using This Document ...
Page 38: ...38 Chapter1 Using This Document What is in This Book Using This Document ...
Page 196: ...196 Chapter3 Programming Fundamentals Overview of RS 232 Option 1AX Programming Fundamentals ...
Page 393: ...Chapter 6 393 Menu Maps Alpha Editor Menu Menu Maps Alpha Editor Menu ...
Page 394: ...394 Chapter6 Menu Maps AMPLITUDE Y Scale Menu Menu Maps AMPLITUDE Y Scale Menu ...
Page 396: ...396 Chapter6 Menu Maps Auto Couple Menu Menu Maps Auto Couple Menu ...
Page 397: ...Chapter 6 397 Menu Maps BW Avg Menu Menu Maps BW Avg Menu ...
Page 398: ...398 Chapter6 Menu Maps Det Demod Menu Menu Maps Det Demod Menu ...
Page 399: ...Chapter 6 399 Menu Maps Display Menu Menu Maps Display Menu ...
Page 400: ...400 Chapter6 Menu Maps File Menus 1 of 3 Menu Maps File Menus 1 of 3 ...
Page 401: ...Chapter 6 401 Menu Maps File Menus 2 of 3 Menu Maps File Menus 2 of 3 ...
Page 402: ...402 Chapter6 Menu Maps File Menus 3 of 3 Menu Maps File Menus 3 of 3 ...
Page 403: ...Chapter 6 403 Menu Maps Freq Count Marker Menu Menu Maps Freq Count Marker Menu ...
Page 404: ...404 Chapter6 Menu Maps FREQUENCY Channel Menu Menu Maps FREQUENCY Channel Menu ...
Page 405: ...Chapter 6 405 Menu Maps Input Output Menu Menu Maps Input Output Menu ...
Page 406: ...406 Chapter6 Menu Maps Marker Menu Menu Maps Marker Menu ...
Page 407: ...Chapter 6 407 Menu Maps Marker Menu Menu Maps Marker Menu ...
Page 408: ...408 Chapter6 Menu Maps Peak Search Menu Menu Maps Peak Search Menu ...
Page 409: ...Chapter 6 409 Menu Maps Preset Menu Menu Maps Preset Menu ...
Page 410: ...410 Chapter6 Menu Maps Print Setup Menu Menu Maps Print Setup Menu ...
Page 411: ...Chapter 6 411 Menu Maps Source Menu Menu Maps Source Menu ...
Page 412: ...412 Chapter6 Menu Maps SPAN X Scale Menu Menu Maps SPAN X Scale Menu ...
Page 413: ...Chapter 6 413 Menu Maps Sweep Menu Menu Maps Sweep Menu ...
Page 414: ...414 Chapter6 Menu Maps System Menu Menu Maps System Menu ...
Page 415: ...Chapter 6 415 Menu Maps Trace View Menu Menu Maps Trace View Menu ...
Page 416: ...416 Chapter6 Menu Maps Trig Menu Menu Maps Trig Menu ...
Page 426: ...426 Index Index Index ...