Agilent Technologies 8560E User Manual page 307

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

Advertisement

Line 10 dimensions array A to 601 elements (one element for each
point of trace data). The array is dimensioned using the REAL
statement, allowing each array element to accept real-number data.
Line 20 sets the analyzer to a desired state.
Line 30 calls the subprogram that queries the spectrum analyzer for
the required state data.
Line 40 specifies P-format (TDF P), then queries the analyzer for data
in trace A (TRA?).
Line 50 enters the data into the array.
Example 4 illustrates how to return data from a computer to the
spectrum analyzer.
E
4
XAMPLE
10
REAL A(1:601)
20
OUTPUT 718;"IP;CF 300MHZ;SP 20MHZ;SNGLS;TS;"
30
CALL Get_settings(Fa,Fb,Rl,Rb,Vb,St,Lg,Aunits$)
40
OUTPUT 718;"TDF P;TRA?"
50
ENTER 718;A(*)
60
PRINT "PRESS CONTINUE TO RETURN DATA TO THE ANALYZER"
70
PAUSE
80
OUTPUT 718;"IP;TDF P;VIEW TRA;"
90
CALL Setup_analyzer(Fa,Fb,Rl,Rb,Vb,St,Lg,Aunits$)
100
OUTPUT 718;"TRA ";
110
FOR I=1 TO 600
120
OUTPUT 718;A(I);"DBM,";
130
NEXT I
140
OUTPUT 718;A(601);"DBM;"
150
END
Lines 10 to 50 are the same as in Example 3.
Line 80 begins to send trace data by presetting the analyzer, preparing
the spectrum analyzer to accept data into trace A, and selecting the
P-format.
Line 90 sets the analyzer to the stored trace conditions per the
subroutine in Example 2.
Lines 100 to 140 enter the stored trace data into trace A. When
sending trace data into the analyzer using P-format, the data points
must be entered into the analyzer one point at a time. Note that in line
120, each data point value of the trace array is followed by the
amplitude units (in this case, dBm).
See Table 5-2 on page 315 for an example of how data is sent to the
computer using the TDF P format.
Chapter 5
Programming
Data Transfer to Computer
307

Advertisement

Table of Contents
loading

Table of Contents