20 PRINT:PRINT"***** COAX CALCULATOR BY S. W. CLOW *****"
30 FOR T = 1 TO 1000: NEXT T
40 PRINT:PRINT"This program uses the velosity factor in all calculations, subracts 4 inches from wattmeter coax lengths and uses a percentage of wavelength in cavity coax calculations.--Hit any key when ready"
50 MS$= INKEY$: IF MS$="" THEN 50
60 CLS
70 PRINT"1. 8214 RG8/U Vel. factor = 78%"
80 PRINT"2. 8242 RG9/U Vel. factor = 66%"
90 PRINT"3. 8219 RG58A/U Vel. factor = 78%"
100 PRINT"4. 8240 RG58/U Vel. factor = 66%"
110 PRINT"5. 8259 RG58A/U Vel. factor = 66%"
120 PRINT"6. 83242 RG142B/U Vel. factor = 69%"
130 PRINT"7. 8216 RG174/U Vel. factor = 66%"
140 INPUT"Choose type of coax (1-7)"; X
150 IF X=1 THEN VF=0.78
160 IF X=2 THEN VF=0.66
170 IF X=3 THEN VF=0.78
180 IF X=4 THEN VF=0.66
190 IF X=5 THEN VF=0.66
200 IF X=6 THEN VF=0.695
210 IF X=7 THEN VF=0.66
214 IF X<1 THEN 140
215 IF X>7 THEN 140
220 INPUT"Enter frequency (xxx.xxxMHz)";F
225 IF F<1 THEN 220
230 PRINT
240 W=(984*10^6)/(F*10^6)
250 PRINT USING "Wavelength = ###.## feet";W
260 PRINT
270 INPUT"choose use of coax: wattmeter (1) or cavity (2)";Y
280 PRINT
290 IF Y=1 THEN GOTO 310
300 IF Y=2 THEN GOTO 400
310 PRINT:PRINT"use 1/2 wavelength coax with wattmeter":PRINT
320 HW=(((W/2)*12)-4)*VF
330 PRINTUSING"Length of coax for 1/2 wavelength at this frequency= ###.## inches";HW
340 PRINT: INPUT "Enter odd multiple for convienient length of coax in application";Z
350 HWM=((((W/2)*12)*Z)-4)*VF
360 PRINT:PRINT USING "Length of coax for this application = ###.## inches between connectors tip to tip";HWM
370 PRINT:INPUT" Do you want another coax length (Y) or (N)";YY$
380 IF YY$="Y" THEN 310
385 IF YY$ ="y" THEN 310
390 IF YY$="N" THEN INPUT "Do you want to quit? (Y) or (N)";R$
391 IF YY$ ="n" THEN INPUT "Do you want to quit? (Y) or (N)";R$
393 IF R$ = "Y" THEN 510
394 IF R$ = "y" THEN 510
395 IF R$ = "N" THEN 60
396 IF R$ = "n" THEN 60
400 CLS:CW=(W*12)*VF:HCW= ((W*12)/2)*VF
410 PRINT:PRINT USING "length of coax will be approximately ###.## inches";HCW
420 PRINT:INPUT "Enter multiple to determine exact coax length convenient for application";L
430 CLS:PRINT:INPUT"Do you want the coax to connect between cavities(1) or from antenna tee to cavity(2)";M
440 IF M = 1 THEN CLS:PRINT: PRINT USING"Length of coax between cavities= ###.## inches between connectors tip to tip";CW*L*0.55
450 IF M = 2 THEN CLS:PRINT:PRINT USING "Length of coax between antenna tee and cavity= ###.## inches between connectors tip to tip";CW*L*0.65
455 IF M>2 THEN 430
460 PRINT:INPUT"Continue (Y) or (N)"; N$
470 IF N$ ="Y" THEN CLS: INPUT"Do you want another cavity coax length (1) or return to beginning of the program for a wattmeter coax length (2)";P
475 IF N$ ="y" THEN CLS: INPUT"Do you want another cavity coax length (1) or return to beginning of the program for a wattmeter coax length (2)";P