Agilent Technologies 8560E User Manual page 314

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

Advertisement

Programming
Data Transfer to Computer
Example 10 uses the I-block format to separate the # and I characters
from the trace data.
E
10
XAMPLE
10
INTEGER Tra_binary(1:601)
20
DIM Header$[2]
30
OUTPUT 718;"IP;CF 300MHZ;SP 20MHZ;SNGLS;TS;"
40
CALL Get_settings(Fa,Fb,Rl,Rb,Vb,St,Lg,Aunits$)
50
OUTPUT 718;"TDF I;TRA?;"
60
ENTER 718 USING "#,2A,601(W)";Header$,Tra_binary(*)
70
END
Like the examples for the A-block format, you store format information
in a string (Header$) and store the desired trace data in an integer
array (Tra_binary).
Returning the trace data to the analyzer requires an important
instruction. The "I" in the term I-block refers to the ability of the
spectrum analyzer to accept data of "indefinite" length when using
I-block format. Even though the analyzer uses only 601 points of trace
data, the I-block format lets you send any number of data points. The
spectrum analyzer will continue to accept data until an
end-of-instruction (EOI) signal is sent to it. HP 9000 Series 200/300
BASIC allows you to send an EOI with the last data byte using the
END command. Refer to Example 11.
E
11
XAMPLE
10
INTEGER Tra_binary(1:601)
20
DIM Header$[2]
30
OUTPUT 718;"IP;CF 300MHZ;SP 20MHZ;SNGLS;TS;"
40
CALL Get_settings(Fa,Fb,Rl,Rb,Vb,St,Lg,Aunits$)
50
OUTPUT 718;"TDF I;TRA?;"
60
ENTER 718 USING "#,2A,601(W)";Header$,Tra_binary(*)
70
PRINT "PRESS CONTINUE TO RETURN DATA TO THE ANALYZER"
80
PAUSE
90
OUTPUT 718;"IP;TS;VIEW TRA;"
100
CALL Setup_analyzer(Fa,Fb,Rl,Rb,Vb,St,Lg,Aunits$)
110
OUTPUT 718;"TDF I;"
120
OUTPUT 718 USING "#,K,601(W)";"TRA#I",Tra_binary(*) END
130
END
By now most of this program should look familiar. Line 120 requires
some explanation, however. The END statement appearing after the
array Tra_binary sends (to the spectrum analyzer) the last data byte
stored in the array, with the GPIB EOI line set "true," as required by
I-block format.
See Table 5-2 on page 315 for an example of how data is sent to the
computer using the TDF I format.
314
Chapter 5

Advertisement

Table of Contents
loading

Table of Contents