![Agilent Technologies 8719ES Programmer'S Manual Download Page 486](http://html.mh-extra.com/html/agilent-technologies/8719es/8719es_programmers-manual_2867960486.webp)
Chapter 7
7-123
Programming Examples
Mixer Measurement Example
The following is an outline of the program's processing sequence:
• I/O paths are assigned for the analyzer and external source.
• The system is initialized.
• The system operator is prompted for the LO and IF frequencies.
• The external source frequency and power level are adjusted.
• The analyzer's IF frequency settings and power level are adjusted.
• The frequency offset mode settings are initialized and the mode is activated.
• A response calibration is performed.
• The system operator is prompted for the type of measurement.
• The selected type of measurement is performed and the display is autoscaled.
• The analyzer and source are released from remote control and the program ends.
NOTE
When running the program, the following message may appear:
“CAUTION: PHASE LOCK CAL FAILED”
. This message is expected and will
disappear once the prompted frequency values are entered.
Running the Program
The analyzer and source are initialized and the operator is queried for the LO frequency,
IF center frequency and span. The source frequency and power level are set, and the
analyzer frequency settings and power level are adjusted as well. The analyzer frequency
offset mode settings are adjusted, the frequency offset mode is turned on, and a response
calibration is performed. The operator is queried for the type of measurement, which is
then performed, and the program ends.
BASIC Program Listing
1 ! This program demonstrates swept IF measurement of group delay,
2 ! amplitude tracking or phase tracking of a mixer under test
3 ! relative to a known “calibration mixer”. The external source
4 ! (LO) must be prepared to accept SCPI commands.
5 !
6 ! EXAMP8A
7 !
8 ASSIGN @Nwa TO 716 ! Assign an I/O path to the analyzer
9 ASSIGN @Src TO 719 ! Assign an I/O path to the source
10 !
11 CLEAR SCREEN
12 ! Initialize
13 ABORT 7 ! Generate an IFC (Interface Clear)
14 CLEAR @Nwa ! Analyzer SDC (Selected Device Clear)
15 OUTPUT @Nwa;”OPC?;PRES;” ! Preset the analyzer
16 ENTER @Nwa;Reply ! Read the 1 when complete
17 CLEAR @Src ! Source SDC
18 REMOTE @Src ! Prepare source for remote commands
19 OUTPUT @Src;”*RST” ! Preset the source
20 !
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 ...