Using the User Flatness
Example Program 8
ASSIGN QSource TO 719
ASSIGN @Meter TO 713
!Set up source
OUTPUT @Source; "*RST"
OUTPUT @Source; "FREQuency:MODE SWEep; STARt 2 GHZ; STOP 20 GHZ"
OUTPUT @Source; "SWEep:TIME 200 MS"
OUTPUT @Source; "POWer:LEVel 5 DBM;:INITiate:CONTinuous ON"
120 OUTPUT @Source; "*OPC?"
130 ENTER @Source; Done
150 !Set up power meter
160 OUTPUT @Meter; "PR"
170 OUTPUT @Meter; "FA"
180 OUTPUT @Meter; "TRO"
200 !Zero power meter
210 OUTPUT @Source; "POWer:STATe OFF"
2 2 0 Z e r o - m e t e r ( @ M e t e r , E r r o r - f l a g )
230 IF Error-flag THEN
PRINT "Error: Meter did not complete zeroing operation!"
2 9 0 ! S e t u p c o r r e c t i o n f r e q u e n c i e s i n U s e r F l a t n e s s C o r r e c t i o n t a b l e
OUTPUT @Source; "CORRection:FLATness I';
1-96 Getting Started Programming
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
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.