EasyManua.ls Logo

HP 8920B - Page 265

HP 8920B
682 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
265
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.

Table of Contents

Other manuals for HP 8920B

Related product manuals