
94 Chapter 4
O:\Manuals\E6380A_Progguid\Book\Ieee.fm
IEEE Common Commands
Common Command Descriptions
Example BASIC program - Service Request
Example 4-5 Example
10 OUTPUT 714;"*SRE 32"
20 !Enable SRQ on events in the Standard Event Status Register
30 OUTPUT 714;"*ESE 1"
40 !Enable Operation Complete bit in Standard Event Status Register
50 ON INTR 7,15 CALL Srvice_interupt!Set up interrupt
60 ENABLE INTR 7;2 !Enable SRQ interrupts
70 OUTPUT 714;"DISP RFG;RFG:OUTP ’Dupl’;AMPL 0 dBm;FREQ 320 MHz;*OPC"
80 LOOP!Dummy loop to do nothing
90 DISP "I am in a dummy loop."
100 END LOOP
110 END
120 SUB Srvice_interupt
130 PRINT "All operations complete."
140 ! Note:
150 ! This interrupt service routine is not complete.
160 ! Refer to the “HP-IB Service Requests” on page 167 for
170 ! complete information.
180 SUBEND
The program enables bit 0 in the Standard Event Status Enable
Register and also bit 5 in the Service Request Enable Register so that
the Test Set will request service whenever the OPC event bit becomes
true. After the service request is detected the program can take
appropriate action. Refer to “HP-IB Service Requests” on page 167 for
further information.
Komentáře k této Příručce