Agilent Technologies 8566B Operating And Programming Manual page 384

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

Advertisement

The OL command transmits information to the controller that describes the state of the analyzer when the OL
command is executed. This information is called the learn string. The learn string can be sent from the controller
memory back to the analyzer to restore the analyzer to its original state.
A list of the learn string contents and coding, and the control settings restored when the learn string is sent to the
analyzer is provided in Appendix C. Note that the trace data and the state of some analyzer functions are not
contained in the learn string.
The learn string requires 80 bytes of storage space. The program below sends the value of the resolution band-
width to the controller.
10
DIM A$[801
PRINTER IS 701
20
!
30
OUTPUT 718;"OL;"
40
ENTER 718 USING "80A";A$
50
60 Bandwidth = NUM(A$[27,27])
70
!
80
90
END
Line 10:
Dimensions enough storage to contain the 80-byte learn string.
Lines 40 to 50: Reads and stores the contents of the learn string.
Lines 60 to 70: Prints the numerical equivalent of bits 4 through 7 of byte 27.
When this program is run, the printer prints the code for the current bandwidth. The instrument state is not
affected. Interpreting the codes of some function values, such as resolution bandwidth, requires additional pro-
gram lines that equate these codes to specific function values.
Use OL command to return the state of most instrument functions to the controller simultaneously. Use a query (?)
to return the state of a single instrument function. Below, a query returns the value of the input attenuation to the
controller.
10
OUTPUT 718; "AT?; "
20 ENTER 718;N
30 END
The OL command and ,?" do not alter the state of the spectrum analyzer, and for this reason, are the best way to
send the states of the analyzer functions to the controller. An analyzer state may be returned to the controller with
attenuation from the coupled state to the uncoupled state when the attenuation value is queried with OA.
10
OUTPUT 718;"AT; OA;"
20 ENTER 718;N
30 END
Output Learn String
Programming 275

Advertisement

Table of Contents
loading

Table of Contents