.'This file pre-sets some variables and properties which may be modify by the user. 'Lines beggining from ' is comment line 'Plik konfiguracyjny 'linie zaczynające sie od średnika to są komentarze '2006 some changes made by SP3SWJ and SP7DPT :-) 'Calibrations add by OH6FDR 'Programm in DUAL VERSION : '- LPT for VNA '- RS232 for oroginal miniVNA and VNA with MEGA8 [PORTSETTING] ' Port Type 1 = LPT 2=RS232 ' !!! remember for miniVNA set Port_type=2 Port_type=2 LPT_address=888 'printer port address 1 byte 888 decimal is LPT1 378h 'serial port address number COM1 is 1 RS_address=5 '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VNA_type=1 'config parameters must be set for correct visualisation '0 - VNA '1- miniVNA ( for reverse RL visualisation)) ' REMEMBER !!! You mus set correct DDS CLOCK [CALIBRATION] RL_OFFSET_filter=15 'set for OUT----IN connected in FILTER mode an ZERO readout for RL 'set for CLOSE port in VNA and ZERO readout for RL RL_OFFSET_vna=3.3 '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [PARAMETERS] DDS_CLOCK=400000000 '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'DDS clock in Hz after multiplicatiom by internal DDS-PLL ' for 30MHz VNA AD9851 30000000x6=180000000 ' for 25MHz VNA AD9851 25000000x6=150000000 ' for standard miniVNA AD9951 400000000 FMin=1000000 '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'min frequency in Hz FMax=180000000 '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'max frequency in Hz Champ=500 'samples per screen Step=1 'samples step - normally not used ' PLL prescaler DDS_PLL= 1 ' 1= no prescaler '256 = prescaler in PLL divide by 256 START_PAUSE=10 'in miliseconds - pause in each scan start STEP_PAUSE=0 'in miliseconds - pause in each step start - used with PLL or slow scan '--------------------------------------------------- ' Common Transmission Line Velocity Factors ' RG-58 ---- 0.66 ' RG-174 ---- 0.66 ' RG-213 ---- 0.66 ' 600 ohm Open Wire ---- 0.92 ' CATV Hardline ---- 0.81 InputVelFactor=0.66 '--------------------------------------------------- [MEMORY] 'Generator memory preset Hz F_M0=2000000 F_M1=7050000 F_M2=10500000 F_M3=14100000 F_M4=18050000 F_M5=21050000 F_M6=24550000 F_M7=27195000 F_M8=60000000 F_M9=30000000 [GRAF_PROP] 'The colors can be changed using the RGB value. 'value to be program = (R*1)+(G*256)+(B*64536) ForeColor=0 ColorS1=165335 'PHASE ColorS2=16711680 'RL - BLUE ColorS3=32768 'X - GREEN ColorS4=65305 'R - yelow ColorS5=16521960 'Z - PURPLE colorS6=255 'SWR - RED BackGround=15790320 'BackGround chart GREY ' 0 'BackGround chart BLACK ' 16777215 'BackGround chart WHITE [SPECIAL_CAL] 'y=ax+b RL_a=1 RL_b=0 PH_a=1 PH_b=0 Z_value= 50 '180 degrees divided by 1023 adc steps Adc_phres=0.175953079 '60 dB divided by 1023 adc steps Adc_magres=0.058651026 'from radians to degrees R2d=57.29577951