Agilent Technologies 8712ET Programmer's Manual page 87

Rf network analyzers
Hide thumbs Also See for 8712ET:
Table of Contents

Advertisement

The following example BASIC code segment shows how to download a
complex array from your program to the analyzer's Memory trace. The
program's "Mem" array is initialized with the proper values such that
when the analyzer computes Data divided by Memory, the desired
increasing gain will be applied.
100
REAL Mem(1:201,1:2)
110
ASSIGN @Hp8711 TO 716
120
! Fill memory array (denominator in Data/Mem)
130
! with values that will result in an
140
! upward sloping gain factor vs. frequency.
150
! Used to compensate for cable loss vs. frequency
160
! Adds 0 dB of gain at start freq; 3 dB at stop freq
170
FOR Pt=1 TO 201
Gain_factor_db=3.0*(Pt − 1)/200
180
190
Gain_factor_lin=10^(Gain_factor_db/20)
200
Mem(Pt,1)=1.0/Gain_factor_lin
210
Mem(Pt,2)=0.0
220
NEXT Pt
230
! Download to the memory trace
240
OUTPUT @Hp8711;"FORM:DATA ASCII"
250
OUTPUT @Hp8711;"TRACE:DATA CH1SMEM";
260
FOR Pt=1 TO 201
270
FOR I=1 TO 2
280
OUTPUT @Hp8711;",";Mem(Pt,I);
290
NEXT I
300
NEXT Pt
310
OUTPUT @Hp8711;""
320
OUTPUT @Hp8711;"CALC1:MATH (IMPL/CH1SMEM)"
The example above downloads data to the corrected memory array. The
data is sent by the program to the analyzer using ASCII encoding. The
data is sent as ASCII characters, separated by commas. The analyzer
accepts the comma separated list of numbers until it receives a linefeed
to terminate the command. The program uses semicolons at the end of
some OUTPUT statements to avoid sending a linefeed until all of the
data has been sent. After the last number is sent, the program sends a
linefeed, and the analyzer accepts the data.
Remember, for faster transfers, use binary data encoding instead of
ASCII.
Programmer's Guide
Applying Gain Correction Using the Memory Trace
! 0..3 dB Power
! real
! imag
! Send linefeed
Trace Data Transfers
! Note the ";"
! Note the ";"
! Data/Mem
6-17

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

8712es8714et8714es

Table of Contents