Agilent Technologies 8566B Operating And Programming Manual page 512

Spectrum analyzer 100 hz - 2.5 ghz/2 - 22 ghz
Table of Contents

Advertisement

SERVICE REQUESTS
Lines 20 and 30:
Lines 50 and 60:
Lines 90 to 150:
Line 180:
Line 190:
Line 200:
Line 210 to 310:
Line 320:
The following program signals the controller when an operator has completed a data entry. With this information,
the controller can read the data entry or branch to a subprogram.
10
ENABLE INTR 7;2
20
ON INTR 7 GGSUB Read-entry
30
OUTPUT 718;"Rl;R4;EE;"
40
PRINT "Enter center frequency on analyzer's
PRINT "Press S on controller
70
80
ON KBD ALL GOSUB Stop
UNTIL Idle
1 0 0
Stop:OUTPUT 718:"Rl;"
110
STOP
120
!
130
Read-entry:OFF INTR
140
Is entry readyzSPOLL(718)
150
160
OUTPUT ;r18;"0~;"
ENTER 718;Center-freq
180
PRINT "YOU ENTERED" ; Center-freq; "Hz"
OUTPUT 718;"R4;EE;"
200
ON INTR 7 GOSUB Read-entry
210
ELSE
PRINT "ILLEGAL ANALYZER COMMAND?"
220
230
BEEP
240
END IF
250
RETURN
260
END
3 8
Appendix
Executes the "Recorcldata" subroutine when an interrupt at select code 7 occurs.
Enables interrupts from the HP-IB interface card.
Sets the analyzer for the measurement. The TS command (take sweep) is the last
command sent to the analyzer, and the controller CR/LF is suppressed with a semico-
lon terminator. This is necessary; otherwise, the next program line is not executed until
the sweep is complete.
(Refer to the description of the TS mnemonic for a detailed
explanation of line 60.)
Any main program.
"Record-data" subroutine. Turns off interrupts from the HP-IB. This prevents inter-
rupts from cascading.
Clears
the end-of-sweep SRQ. This prevents the SRQ from interrupting the program at
the next sweep.
Reads the status byte and clears the SRQ.
Record data if end-of-sweep SRQ was sent.
Returns program execution to the main program.
7
keyboard.**
to
stop
APPENDIX D

Advertisement

Table of Contents
loading

Table of Contents