Agilent Technologies 8560E User Manual page 313

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

Advertisement

To send trace data from the computer to the analyzer, refer to Example
9.
E
9
XAMPLE
10
INTEGER Tra_binary(1:601)
20
DIM Header$[4]
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 A;TRA?;"
60
ENTER 718 USING "#,4A,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 A;"
120
OUTPUT 718 USING
"#,K,W,601(W)";"TRA#A",1202,Tra_binary(*),";"
130
END
Line 90 presets the analyzer and sets trace A to view mode.
Line 100 returns the state data to the analyzer.
Line 110 sets the data format to A-block.
Line 120 sends the TRA command, the format information, and the
trace data. The USING statement specifies that the data "TRA#A" will
be sent as characters, followed by a word (1202) and 601 16-bit words
(the actual trace data). Remember, you must send #A to indicate the
format and 1202 to indicate the length of the trace, in bytes. The "#"
sign within the USING statement suppresses any end-of-line signal
characters.
See Table 5-2 on page 315 for an example of how data is sent to the
computer using the TDF A format.
TDF I (I-block format): Return Indefinite Block-Data Fields in
Measurement Units
Very similar to A-block format, the I-block format transmits data in
measurement units as binary numbers in an indefinite block-data field
of unknown size. Each data point is sent as two 8-bit bytes; the most
significant byte is sent first, followed by the least significant byte. The
I-block format also transfers a header before the trace data. The header
is comprised of ASCII characters "#", and "I". These characters indicate
that the trace data is in I-block format. Like the A-block format
examples, when sending the trace data to the computer, you may want
to keep these two characters separate from the trace data, as in
Example 10.
I-format sends an end-or-identify message (EOI) with the last byte of
data. IP (instrument preset) and device clear select words as the default
data size. Block data formats are the fastest method of transferring
trace data.
Chapter 5
Programming
Data Transfer to Computer
313

Advertisement

Table of Contents
loading

Table of Contents