![Agilent Technologies 8719ES Programmer'S Manual Download Page 414](http://html.mh-extra.com/html/agilent-technologies/8719es/8719es_programmers-manual_2867960414.webp)
Chapter 7
7-51
Programming Examples
Measurement Calibration Examples
• The error-corrected (calibrated) S-parameters are calculated using the pre-raw data
and calibration coefficients.
• The calibrated data for the S-parameter selected earlier is sent into the analyzer and
saved to the analyzer's internal memory.
• A new sweep is initiated and the loop repeats if there has been no keyboard activity.
• Upon exit of the loop, the analyzer is set up to display the active measurement trace.
• The analyzer's internal calibration is turned back on and continuous sweep mode is
resumed.
• The analyzer is released from remote control and the program ends.
Running the Program
The analyzer is initialized and raw offsets are turned off. After the analyzer is placed in
local mode, the operator is prompted to set up a 2-port calibration before continuing. The
resulting calibration coefficients are read from the analyzer into memory arrays.
Next, the calibration is turned off and the analyzer is placed into
TAKE4
mode and
HOLD
mode. After being prompted to connect the DUT, the operator selects which S-parameter to
send back to the analyzer. The currently displayed data is saved to the analyzer's internal
memory and the analyzer is set up to display memory only. The operator is prompted to
press any key to terminate the program, a sweep is initiated and the main loop of the
program begins.
After the sweep concludes, the four pre-raw S-parameters are read from the analyzer into
memory arrays. The error-corrected (calibrated) S-parameters are calculated and the
calibrated data for the S-parameter selected earlier is read into the analyzer and saved to
the analyzer's internal memory. A new sweep is initiated and the loop repeats if there has
been no keyboard activity.
Upon exit of the loop, the analyzer is set up to display the active measurement trace. The
analyzer's internal calibration is turned back on and continuous sweep mode is resumed
before the program ends.
BASIC Program Listing
1 ! This program demonstrates the TAKE4 mode.
2 ! The program first asks the user to set up the instrument
3 ! with a 2-port calibration. The subroutine “Read_Cal_co”
4 ! is used to read the 12 term error correction arrays into
5 ! a (N x 12) 2-dimension array (N = number of points). This will
6 ! be used in the “Calc_2_port” subroutine. The program turns off
7 ! error correction, puts the analyzer in hold, turns on TAKE4
8 ! mode, and starts a sweep. The subroutine “Read_4_raw” reads in
9 ! the uncorrected data. The subroutine “Calc_2_port” calculates
10 ! the error correction and returns the corrected arrays.
11 ! The corrected S-parameter is re-input to the analyzer, stored
12 ! in the memory trace and displayed in memory for a visual
13 ! indication of the take4 function.
14 !
15 ! EXAMP2G
16 !
17 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Summary of Contents for 8719ES
Page 15: ...1 1 1 Alphabetical Command Reference ...
Page 293: ...2 1 2 Introduction to Instrument Control ...
Page 310: ...3 1 3 GPIB Programming ...
Page 334: ...4 1 4 Reading Analyzer Data ...
Page 343: ...5 1 5 Data Processing Chain ...
Page 350: ...6 1 6 Error Reporting ...
Page 364: ...7 1 7 Programming Examples ...
Page 502: ...A 1 A Preset Conditions ...
Page 517: ...B 1 B Command Listings ...