204
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
When you read the analyzer status byte register with a serial poll, the RQS bit is
reset to 0. Other bits in the register are not affected.
Restarting a measurement with the
:INITiate
command can cause the measuring bit to pulse low. A
low pulse causes an SRQ if the status register is configured to SRQ upon end-of-measurement. To avoid
this, perform the following steps:
1. Set
:INITiate:CONTinuous
off.
2. Set/enable the status registers.
3. Restart the measurement (send
:INITiate
).
Example of Monitoring Conditions Using the :STATus Command
Use the following steps to monitor a specific condition:
1. Determine which register contains the bit that reports the condition.
2. Send the unique SCPI query that reads that register.
3. Examine the bit to see if the condition has changed.
4. Act upon the cause of the condition and the SRQ to re-enable the method.
The examples below show how to use the
:STATus
command to perform the following tasks:
•
Check the analyzer hardware and firmware status.
Do this by querying the condition registers which continuously monitor status. These registers
represent the current state of the analyzer. Bits in a condition register are updated in real time. When
the condition monitored by a particular bit becomes true, the bit is set to 1. When the condition
becomes false, the bit is reset to 0.
•
Monitor a particular bit (condition), or bits.
Once you have enabled a bit using the event enable register, the analyzer will monitor that particular
bit. If the bit becomes true in the event register it will stay set until the event register is cleared.
Querying the event register allows you to detect that this condition occurred even if the condition no
longer exists. The event register can only be cleared by querying it or sending the
*CLS
command,
which clears all event 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 respond to the condition of going from 0 to 1 (positive transitions). This can be
changed so that the selected bit is detected if it goes from 1 to 0 (negative transition), or if either
transition occurs. Query the event register to determine whether or not a change has been made to
how the transition registers respond. The event register can only be cleared by querying it or sending
the
*CLS
command, which clears all event registers.
Setting and Querying the Status Register
See
. Each bit in a register is represented by a numerical value based on its location. This
number is sent with the command to enable a particular bit. To enable more than one bit, send the sum of
all of the bits involved.
For example, to enable bit 0 and bit 6 of the standard event status register, you would send the command
*ESE 65
(1 + 64).
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 bit 7 is true, bit 3 is true, and bit 2 is true.
Содержание ESA-E E4401B
Страница 4: ...4 ...
Страница 35: ...35 Using This Document 1 Using This Document ...
Страница 38: ...38 Chapter1 Using This Document What is in This Book Using This Document ...
Страница 196: ...196 Chapter3 Programming Fundamentals Overview of RS 232 Option 1AX Programming Fundamentals ...
Страница 393: ...Chapter 6 393 Menu Maps Alpha Editor Menu Menu Maps Alpha Editor Menu ...
Страница 394: ...394 Chapter6 Menu Maps AMPLITUDE Y Scale Menu Menu Maps AMPLITUDE Y Scale Menu ...
Страница 395: ...Chapter 6 395 Menu Maps Amplitude Y Scale Corrections Menu Menu Maps Amplitude Y Scale Corrections Menu ...
Страница 396: ...396 Chapter6 Menu Maps Auto Couple Menu Menu Maps Auto Couple Menu ...
Страница 397: ...Chapter 6 397 Menu Maps BW Avg Menu Menu Maps BW Avg Menu ...
Страница 398: ...398 Chapter6 Menu Maps Det Demod Menu Menu Maps Det Demod Menu ...
Страница 399: ...Chapter 6 399 Menu Maps Display Menu Menu Maps Display Menu ...
Страница 400: ...400 Chapter6 Menu Maps File Menus 1 of 3 Menu Maps File Menus 1 of 3 ...
Страница 401: ...Chapter 6 401 Menu Maps File Menus 2 of 3 Menu Maps File Menus 2 of 3 ...
Страница 402: ...402 Chapter6 Menu Maps File Menus 3 of 3 Menu Maps File Menus 3 of 3 ...
Страница 403: ...Chapter 6 403 Menu Maps Freq Count Marker Menu Menu Maps Freq Count Marker Menu ...
Страница 404: ...404 Chapter6 Menu Maps FREQUENCY Channel Menu Menu Maps FREQUENCY Channel Menu ...
Страница 405: ...Chapter 6 405 Menu Maps Input Output Menu Menu Maps Input Output Menu ...
Страница 406: ...406 Chapter6 Menu Maps Marker Menu Menu Maps Marker Menu ...
Страница 407: ...Chapter 6 407 Menu Maps Marker Menu Menu Maps Marker Menu ...
Страница 408: ...408 Chapter6 Menu Maps Peak Search Menu Menu Maps Peak Search Menu ...
Страница 409: ...Chapter 6 409 Menu Maps Preset Menu Menu Maps Preset Menu ...
Страница 410: ...410 Chapter6 Menu Maps Print Setup Menu Menu Maps Print Setup Menu ...
Страница 411: ...Chapter 6 411 Menu Maps Source Menu Menu Maps Source Menu ...
Страница 412: ...412 Chapter6 Menu Maps SPAN X Scale Menu Menu Maps SPAN X Scale Menu ...
Страница 413: ...Chapter 6 413 Menu Maps Sweep Menu Menu Maps Sweep Menu ...
Страница 414: ...414 Chapter6 Menu Maps System Menu Menu Maps System Menu ...
Страница 415: ...Chapter 6 415 Menu Maps Trace View Menu Menu Maps Trace View Menu ...
Страница 416: ...416 Chapter6 Menu Maps Trig Menu Menu Maps Trig Menu ...
Страница 426: ...426 Index Index Index ...