
170 Chapter 6
O:\Manuals\E6380A_Progguid\Book\Advoper.fm
Advanced Operations
HP-IB Service Requests
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 6-105 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 6-106 Example response
18
Komentáře k této Příručce