HP (Hewlett-Packard) HP 83620A Vacuum Cleaner User Manual


 
Using the User Flatness
Correction Commands,
Example Program 8
The following program interrogates the synthesizer and an HP
437B
power meter for frequency and power information respectively.
The synthesizer (an HP 83620A) is programmed to sweep from
2 to 20 GHz, with frequency-correction pairs every 100 MHz and
+5
dBm
leveled output power. For this example, we assume that the
path losses do not exceed 5
dBm
and that the HP
437B
power meter
already has its power sensor’s calibration factors stored in sensor
data table 0. If another power meter is used, the power sensor’s
calibration factors will have to be stored in a look-up table. Modify
the program to suit your particular measurement requirements. Up
to 801 points may be entered in the user flatness correction table
with this program.
SCPI commands are used to set up the source parameters and enter
correction frequencies and data into the correction table.
10
!Assign
the address of the source and power meter
20
ASSIGN
QSource
TO 719
30
ASSIGN
@Meter
TO 713
40 INTEGER Error-flag
50
ABORT 7
60
!
70
!Set up source
80
OUTPUT @Source;
"*RST"
90
OUTPUT @Source;
"FREQuency:MODE
SWEep;
STARt
2 GHZ; STOP
20
GHZ"
100
OUTPUT @Source; "SWEep:TIME 200 MS"
110
OUTPUT @Source; "POWer:LEVel 5 DBM;:INITiate:CONTinuous
ON"
120 OUTPUT @Source;
"*OPC?"
!Is
operation complete?
130 ENTER @Source; Done
140
!
150 !Set up power meter
160 OUTPUT @Meter;
"PR"
170 OUTPUT @Meter;
"FA"
180 OUTPUT @Meter;
"TRO"
190
!
200
!Zero
power meter
210 OUTPUT @Source; "POWer:STATe OFF"
!Make
sure RF is off!
220 Zero-meter (@Meter, Error-flag)
230 IF Error-flag THEN
240
BEEP
250
CLEAR SCREEN
260
PRINT "Error: Meter did not complete zeroing operation!"
270
ELSE
280
!
290 !Set up correction frequencies in User Flatness Correction table
300
OUTPUT @Source;
"CORRection:FLATness
I';
310
Start_freq=2
320
Stop_freq=20
330
Increment=.1
340
Freq=Start-freq
350
WHILE
Freq<Stop-freq
1-96 Getting Started Programming