Status Registers
How to use the Status Registers
24
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.
•
Monitor a particular type of change in a condition (bit).
— The transition registers are preset to register if the
condition goes from 0 to 1 (false to true, or a positive
transition).
— This can be changed so the selected condition is detected
if the bit goes from 1 to 0 (true to false, or a negative
transition).
— It can also be set for both types of transitions occurring.
— Or it can be set for neither transition. If both transition
registers are set to 0 for a particular bit position, that bit
will not be set in the event register for either type of
change.
Status Register Examples
Each bit in a register is represented by a numerical value
based on its location. See figure 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 want to monitor.
Example
1
To enable bit 0 and bit 6 of standard event status register,
you would send the command
*ESE 65
because 1 + 64 = 65.
2
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.
Содержание N9322C
Страница 6: ...Contents 4 ...
Страница 14: ...Getting Started Remotely Operating the Analyzer 8 ...
Страница 38: ...Status Registers Status Register System 32 ...
Страница 56: ...Programming Example Using Marker Delta Mode and Marker Minimum Search 48 ...