Agilent Technologies E8285A User Manual page 215

Cdma mobile station test set
Hide thumbs Also See for E8285A:
Table of Contents

Advertisement

Chapter 4, Status Reporting
GPIB Status Register Groups
An example of reading the Status Byte register using *STB? is shown below.
Example BASIC program
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)
50 PRINT Stat_byte
60 Mstr_sum_msg=BINAND(Stat_byte_reg,64)
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.
Reading the Service Request Enable Register
The Service Request Enable Register is read with the *SRE? Common Command.
The *SRE? query allows the programmer to determine the current contents (bit
pattern) of the Service Request Enable Register. The Test Set responds to the
*SRE? query by placing the binary-weighted decimal value of the Service
Request Enable Register bit pattern into the Output Queue. The decimal value of
the bit pattern will be a positive integer in the range 0 to 255. The response data is
obtained by reading the Output Queue into a numeric variable, integer or real.
Example BASIC program
10 INTEGER Srv_rqs_enab_rg
20 OUTPUT 714;"*SRE?"
30 ENTER 714;Srv_rqs_enab_rg
40 PRINT Srv_rqs_enab_rg
50 END
Example response
18
214
S:\agilent\e8285\USRGUIDE\BOOK\CHAPTERS\hpibstat.fb
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Advertisement

Table of Contents
loading

Table of Contents