Agilent Technologies 8560E User Manual page 306

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

Advertisement

Programming
Data Transfer to Computer
The left edge of the trace corresponds to the start frequency and the
right edge corresponds to the stop frequency. You will need to know
start and stop frequencies under which the trace data was measured if
you plan to convert from position units to frequency.
Trace-Data Formatting
The TDF (trace-data format) command controls the formatting of
trace-amplitude data. There are five format modes: real-number
parameter units (P) format, binary (B) format, A-block format, I-block
format, and measurement units (M) format. All the format modes
return amplitude information in measurement units except for TDF P,
which returns parameter units.
The output format, and how to transfer data to and from a computer
with each format, is described in the following section. TDF P: Return
Decimal Numbers in Parameter Units
The real number, or "P" format allows you to receive or send data as
ASCII decimal values in real-number (parameter) units. This is the
default format when the instrument is turned on, and when instrument
preset (IP) is activated. Numbers are in dBm, dBmV, dBµV, volts, or
watts, as determined using the amplitude units (AUNITS) command.
Default units are volts for linear trace information, and dBm for
logarithmic trace information.
A line feed (ASCII code 10) follows data output. The end-or-identify
message (EOI) is sent with a line feed.
When using the P-format, be sure to include amplitude units with the
NOTE
trace data using the AUNITS command.
Real-number data can be an advantage if you wish to use the data later
in a program. However, data transfers using P-format tend to be slow
and require more storage memory (approximately 1200 bytes for binary
and 4800 bytes for real numbers). In some cases, P-format can take up
to four times the amount of controller memory compared to binary
format.
Example 3 below illustrates how to send trace data to a computer.
E
XAMPLE
10
20
30
40
50
60
70
80
90
100
306
3
REAL A(1:601)
OUTPUT 718;"IP;CF 300MHZ;SP 20MHZ;SNGLS;TS;"
CALL Get_settings(Fa,Fb,Rl,Rb,Vb,St,Lg,Aunits$)
OUTPUT 718;"TDF P;TRA?"
ENTER 718;A(*)
END
SUB Get_settings(Fa,Fb,Rl,Rb,Vb,St,Lg,Aunits$)
OUTPUT 718;"FA?;FB?;RL?;RB?;VB?;ST?;LG?;AUNITS?;"
ENTER 718 USING "K";Fa,Fb,Rl,Rb,Vb,St,Lg,Aunits$
SUBEND
Chapter 5

Advertisement

Table of Contents
loading

Table of Contents