Agilent Technologies 8560E User Manual page 312

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

Advertisement

Programming
Data Transfer to Computer
The first two characters indicate that the transferred data is in A-block
format. "1202" indicates the length of the trace data, expressed in bytes.
As previously mentioned, trace data is composed of 601 trace elements.
Each trace element is transferred as one word that is composed of two
8-bit bytes. Thus, 601 words contain 1202 bytes. 1202 is the trace
length sent. You may want to keep this format and trace length
information separate from the actual trace data, as in Example 8.
The end-or-identify message (EOI) is sent with a line feed.
IP (instrument preset) and device clear select words as the default data
size. Block data formats are the fastest method of transferring trace
data.
Example 8 illustrates how to keep the format and trace length
information separate from the actual trace data.
E
8
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
END
Line 10 creates the array Tra_binary using the INTEGER statement.
Line 20 creates a string, Header$. The header will be placed in this
string, separate from the trace data.
Line 50 specifies the data format, then queries for the contents of trace
A.
Line 60 places the header in "Header$" and places 601 points of trace
data in "Tra_binary". Header$ will contain the #A and two non-printing
characters that represent in binary the integer 1202. The first
non-printing character is CHR$(4), and the second non-printing
character is CHR$(178). Because this string does not contain desired
trace data, you can discard it. The USING statement specifies that four
header characters will be transferred, followed by 601 16-bit words,
which are the actual trace data. The "#" sign within the USING
statement suppresses any end-of-line signals that can occur before the
last trace-data byte is sent.
312
Chapter 5

Advertisement

Table of Contents
loading

Table of Contents