![HP 8920B Programmer'S Manual Download Page 314](http://html.mh-extra.com/html/hp/8920b/8920b_programmers-manual_166189314.webp)
314
Chapter 5, 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 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
Writing the Service Request Enable Register
The Service Request Enable Register is written with the *SRE Common
Command. The *SRE command sets the bit pattern (bits 0-5 and 7) of the Service
Request Enable Register. The Service Request Enable Register allows the
programmer to select which condition(s), as defined by bits 0-5 and 7 of the Status
Byte Register, will generate a Service Request on the HP-IB bus. The Test Set
always ignores bit 6 (binary weight 64) of the bit pattern set by the *SRE
command.
The bit pattern set by the *SRE command is determined by selecting the desired
condition(s) from the Status Byte Register, setting the value of the bit position(s)
to a logical one, setting the value of all non-selected bit positions to a logical zero,
and sending the binary-weighted decimal equivalent of bits 0-5 and 7 after the
*SRE command. For example, if the programmer wished to have the occurrence
of a message available in the Output Queue (bit position 4 in the Status Byte
Register) and the occurrence of a condition in the Hardware# 2 Status Register
(bit position 1 in the Status Byte Register) to generate a Service Request on the
HP-IB bus, the binary-weighted decimal value of the bit pattern for the Service
Request Enable Register would be determined as shown in
Summary of Contents for 8920B
Page 10: ...10 ...
Page 16: ...Contents 16 9 Error Messages Index 673 ...
Page 17: ...17 1 Using HP IB ...
Page 48: ...48 Chapter 1 Using HP IB Remote Local Modes ...
Page 49: ...49 2 Methods For Reading Measurement Results ...
Page 61: ...61 3 HP IB Command Guidelines ...
Page 84: ...84 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Page 85: ...85 4 HP IB Commands ...
Page 90: ...90 Adjacent Channel Power ACP ...
Page 116: ...116 Configure I O Configure ...
Page 156: ...156 Call Processing ...
Page 185: ...185 System System SYSTem ERRor Returns integer value quoted string ...
Page 242: ...242 Common Command Descriptions ...
Page 251: ...251 5 Advanced Operations ...
Page 377: ...377 7 IBASIC Controller ...
Page 458: ...458 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Page 640: ...640 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Page 643: ...643 9 Error Messages ...
Page 672: ...672 ...
Page 682: ...Index 682 ...