Agilent Technologies 8566B Operating And Programming Manual page 199

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

Advertisement

EE (Continued)
Using this program, the outputs printed by pressing particular DATA keys are as follows:
(There is no response to pressing DATA [0] .)
Method
2: Testing when an entry has been completed, and then exiting the program loop with a service request.
10
20
REPEAT
30
40
50
60
70
P R I N T E R I S
80
PRINTN
90
END
Line 10:
Contains an EE command preceded by two service-request format commands. The Rl com-
mand clears the service request modes of the analyzer. The R4 command calls for a service
request if a units key is pressed to signify the completion of an entry.
Line 30:
Reads the serial poll byte and sets it equal to variable A. The first bit of this byte denotes the status
of the service request.
Line 40:
Forms the conditional statement of the program loop (lines 20-40). The BIT statement compares
the first bit of variable A with 0. If the first bit of variable A is 0, indicating the units key has not been
pressed, the program continues at line 30. If it is 1, indicating a units key has been pressed, the
program continues at line 50.
Line 50:
Transfers the value of the active function to the controller. In this case, the active function contains
the DATA keys entry
Line 60:
Takes the DATA keys entry and sets it equal to the variable N.
Lines 70 to 80: Prints the value of N on a printer whose address is 701.
90 Programming

Advertisement

Table of Contents
loading

Table of Contents