Agilent Technologies 8560E User Manual page 334

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

Advertisement

Programming
Monitoring System Operation
The Service-Request Mask
The service-request mode is enabled and controlled by the
request-service-condition command, RQS. It defines a service-request
mask that specifies which of the status-byte bits can generate a service
request. Below, RQS specifies the ERROR-PRESENT and
COMMAND-COMPLETE states (bits 5 and 4, respectively) for service
requests.
OUTPUT 718;"RQS ";DVAL("00110000",2)
Selects bit 5 and 4
(32+16) to enable
service request mode for ERROR-PRESENT and COMMAND-COMPLETE.
OUTPUT 718;"RQS 48;"
Also selects bits 5
and 4 as above, but is somewhat easier to read.
Once RQS is executed, the analyzer requests service by setting the SRQ
line true when the desired conditions or events occur.
Table 5-4
Status Register
Bit Number
7
6
5
4
3
2
1
0
Computer Interrupt Statements
Now that the spectrum analyzer is prepared to trigger service requests,
you must prepare the computer to accept this type of interrupt. Use the
BASIC statements ON INTR...GOTO or CALL or GOSUB and
ENABLE INTR. ON INTR...GOTO causes the computer to branch to a
subroutine or some other part of the program when an interrupt is
generated. ENABLE INTR enables the computer to accept an interrupt.
These two commands appear below.
10
20
30
334
Decimal
Equivalent
128
64
32
16
8
4
2
1
OUTPUT 718;"RQS 16;"
ON INTR 7 GOSUB Srq
ENABLE INTR 7;2
Analyzer
Description
State
Not used
RQS
Requests service
ERROR
Set when error present
PRESENT
COMMAND
Any command is completed
COMPLETE
Not used
END OF
Set when any sweep is
SWEEP
completed
MESSAGE
Set when display message
appears
TRIGGER
Trigger is activated
Chapter 5

Advertisement

Table of Contents
loading

Table of Contents