Agilent Technologies 8566B Operating And Programming Manual page 316

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

Advertisement

10
OPTIONBASE 1
DIM M$(B)[ 10241
2 0
3 0
O U T P U T 718;"02;"
Da=0
4 0
8 0
!
60
OUTPUT 718;"DA";Da;";KS";CHB$( 123)
7 0
ENTER 718 USING "#,1024A";M$(I)
8 0
90
100 NEXT1
110 !
120 OUTPUT 718;";A3;B3;Ml;LP);KSm;KSo;"
130 OUTPUT 718;"EM;KSi;EM; EX;KSi;EM;"
140 PRINT "OBSERVE BLANK SCBEEN;PBESS CONTINUE"
180 PAUSE
180 OUTPUT 718 USING "8(K),B,K";M$( *);32;";"
190 OUTPUT 718;"Al ED"
E N D
2 0 0
Line 20:
Dimensions enough memory in M$ to contain all 4096 values of display memory. (8192
bytes or 2 times 4096 .)
Line 30:
Sets the analyzer output format to 2-byte binary. The KS39 command used in line 170
requires this format.
Line 40:
Sets the display address variable, Da, equal to the first address.
Line 60:
Defines the program loop. Eight cycles are necessary. The total number of display mem-
ory values (4096) is not evenly divisible by 1001, which is the number of values read by
KS123. The next smallest number by which 4096 is evenly divisible is 512. 4096/512 =
8.
Line 70:
Sets the display address and executes KS123. The 123 must be sent as a single binary
byte.
Line 80:
Enters the display memory data into the string array M$. (1024 or 2 times 512 bytes are
entered.)
Line 100:
Continues the program at line 70. Line 70 readdresses the analyzer, clearing the "wait"
mode. This "wait" mode is a result of using KS 123 to read less than 1001 display mem-
ory values.
Lines 120 to 150:
Erases trace A, B, and C memories and blanks the annotation and graticule.
Line 170 to 190:
Restores the analyzer display by writing the contents of M4 back into display memory.
The KS123 command cannot be executed from the front panel.
This is the decimal ASCII equivalent and is transmitted to the analyzer as a single 8-bit byte.
l
(Continued) KS 123
P r o g r a m m i n g 2 0 7

Advertisement

Table of Contents
loading

Table of Contents