User`s manual
126 Chapter 6
O:\Manuals\E6380A_Progguid\Book\Advoper.fm
Advanced Operations
Status Reporting
Example BASIC program to read Status Byte with *STB
command
Example 6-15 Example
10 INTEGER Stat_byte_reg,Stat_byte,Mstr_sum_msg
20 OUTPUT 714;"*STB?"
30 ENTER 714;Stat_byte_reg
40 Stat_byte=BINAND(Stat_byte_reg,191) !mask out the MSS bit
50 PRINT Stat_byte
60 Mstr_sum_msg=BINAND(Stat_byte_reg,64) !mask out the Stat Byte
70 PRINT Mstr_sum_msg
80 END
Example 6-16 Example
32
0
Writing the Status Byte Register
The Status Byte Register is a read-only register and is altered only
when the state of the Summary Messages from the overlaying data
structures are altered.
Clearing the Status Byte Register
The *CLS Common Command clears all Event Registers and Queues so
that their corresponding Summary Messages are cleared. The Output
Queue and its MAV Summary Message are an exception and are
unaffected by the *CLS Common Command.