Agilent Technologies 8566B Operating And Programming Manual page 510

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

Advertisement

SRQ Activating
Message
Command
Note that R2, R3, and R4 can be activated simultaneously, allowing all the SRQ's.
Examples
This program interprets the SRQ status byte and prints its message
OUTPUT 718;"Rl;R3;R4;'
10
20
ON INTR 7 GOSUB Interpret-srq
30
ENABLE INTR 7:2
40
PRINT "Push Hz key on analyzer."
50
PRINT "Press S on controller to stop program.'*
60
70
80
ON KBD ALL GOSUB Stop
90
UNTIL
100 Stop:OUTPUT 718;"Rl;
110
STOP
120
130
Interpret-srq:OFF INTR 7
140
S t a t u s byte=SPOLL (718)
150
IF BITTStatus byte,3)=1 THEN PRINT "HARDWARE BROKEN'
160
IF BIT(StatusIbyte,l)=l THEN PRINT "UNITS KEY PRESSED'
WAIT .l
180
ON INTR 7 GOSUB Interpret-srq
OUTPUT
200
RETURN
210
END
Line
10:
Line 20:
Line 30:
Lines 70 to
100:
Allowed
Idle
Enables all but the end of sweep SRQ. Rl clears former SRQ commands.
the "Interpretsrq" subroutine when an interrupt at select code 7 occurs.
Enables the controller interrupt capability.
Any main program. These lines form a program loop that is interrupted when the
analyzer requests service.
Cancelled
B
Y
Comments

Advertisement

Table of Contents
loading

Table of Contents