EasyManua.ls Logo

HP 8920B - Page 234

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...
234
Common Command Descriptions
Example BASIC program - Service Request
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" in chapter 5 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 311 for further
information.
Example BASIC program - Polling the Standard Event Status Register
10 INTEGER Stdevnt_reg_val
20 OUTPUT 714;"DISP RFG;RFG:OUTP 'Dupl';AMPL 0 dBm;FREQ 320
MHz;*OPC"
30 LOOP
40 OUTPUT 714;"*ESR?" ! Poll the register
50 ENTER 714;Stdevnt_reg_val
60 EXIT IF BIT(Stdevnt_reg_val,0) ! Exit if Operation Complete bit
set
70 END LOOP
80 PRINT "All operations complete."
90 END

Table of Contents

Other manuals for HP 8920B

Related product manuals