Agilent Technologies A.18.00 Weather Radio User Manual


 
245
Chapter 5, Advanced Operations
Status Reporting
Example BASIC program to read Status Byte with *STB command
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 response
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.
Status Register Structure Overview
The structure of the register groups used in the Test Set is based upon the status
data structures outlined in the IEEE 488 and SCPI 1994.0 Standards. There are
two types of status data structures used in the Test Set: status registers and status
queues. The general models, components, and operation of each type of status
data structure are explained in the following sections.