Agilent Technologies 8560E User Manual page 338

Agilent technologies 8560 e-series and ec-series spectrum analyzers
Table of Contents

Advertisement

Programming
Monitoring System Operation
E
4
XAMPLE
10
OUTPUT 718;"IP;SNGLS;CF 300MHZ;SP 20MHZ;TS;"
20
OUTPUT 718;"RQS 16;"
30
ON INTR 7 GOSUB Srq
40
ENABLE INTR 7;2
50
Done=0
60
OUTPUT 718;"SRQ 16;"
70
Idle:
IF Done=0 GOTO Idle
80
STOP
90
Srq:
Sbyte=SPOLL(718)
100
PRINT Sbyte
110
PRINT "INTERRUPT GENERATED"
120
OUTPUT 718;"RQS 0;"
130
Done=1
140
RETURN
150
END
Here, on Line 50, a "command complete" service request is immediately
generated, and you can be sure that the routine will work.
Summary
The main points to using service requests are highlighted below.
1. Choose the conditions for generating service requests.
2. Set a bit mask that enables only these chosen conditions.
3. Prepare the computer to accept service requests. Use the ON
INTR...GOSUB and ENABLE INTR statements.
4. Once an interrupt is triggered, use the analyzer STB command or
the SPOLL statement to read the interrupt.
338
Chapter 5

Advertisement

Table of Contents
loading

Table of Contents