home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Antennas
/
Antennas_CD-ROM_Walnut_Creek_September_1996.iso
/
mininec
/
amiga
/
makeyagi.asc
< prev
next >
Wrap
Text File
|
1996-06-30
|
5KB
|
130 lines
10 ON ERROR GOTO 6000
20 PRINT" *******************************************"
30 PRINT" * YAGI ANTENNA DESIGNER FOR *"
40 PRINT" * 3-17 ELEMENT ANTENNAS *"
50 PRINT" * PROGRAM BY R.P.HAVILAND, W4MB *"
60 PRINT" * REFERENCE-VIEZBICKE *"
70 PRINT" * NBS REPORT NBS-TN-688 *"
80 PRINT" * REFERENCE- HAVILAND *"
90 PRINT" * PRACTICAL ANTENNA DESIGN AND ANALYSIS *
100 PRINT" * PROGRAM COPYRIGHT 1986 *"
110 PRINT" * MINILAB BOOKS *"
120 PRINT" * DAYTONA BEACH, FL 32121-1086 *"
110 PRINT" *******************************************"
200 DIM A(19,6),DI(15,2), ELE(18)
210 FOR N=0 TO 19
220 FOR M=1 TO 6
230 READ A(N,M)
240 NEXT M
250 NEXT N
260 DEF FN A(X)=INT(10*X+.5)/10
270 DEF FN B(X)=INT(100*X+.5)/100
280 PI=3.14159
300 PRINT
310 INPUT" ENTER CENTER FREQUENCY, MHZ";FO
320 INPUT"MAXIMUM BOOM LENGTH, FEET";MB
330 LA=984/FO :LM=299.8/FO
340 K=6
350 BL=A(19,K):IF BL=0 THEN PRINT "BEYOND TABLES":GOTO 380
360 IF LA*BL>MB THEN K=K-1:GOTO 350
370 PRINT"TABLE BOOM LENGTH IS ";FNB(A(19,K)*LA);"FEET"
380 PRINT:INPUT"ENTER +1=LONGER BOOM,-1=SHORTER,0=SAME";TV
390 IF K+TV<1 OR K+TV>6 THEN PRINT"BEYOND TABLES":GOTO 380
400 IF TV=0 THEN 500
410 K=K+TV:BL=A(19,K):GOTO 370
500 PRINT:PRINT"THE GAIN IS ";A(17,K);"DB"
510 PRINT"THE BOOM LENGTH IS ";FNB(BL*LA);"FEET(+ENDS)"
520 PRINT"THE REFLECTOR SPACING IS ";FNB(.2*LA);"FEET OR "FNB(2.4*LA);" INCHES"
530 PRINT"THE DIRECTOR SPACING IS";FNB(A(16,K)*LA);"FEET OR";
540 PRINT FNB(A(16,K)*LA*12);"INCHES"
550 E1=.0085
560 PRINT"THE ELEMENT REFERENCE DIAMETER IS "; FNB(.0085*LA*12);"INCHES"
570 PRINT"ENTER NEW (AVERAGE) ELEMENT DIAMETER, OR 0 FOR NO CHANGE":INPUT T$
580 DIA= VAL(T$)
590 IF DIA=0 THEN E2=.0085:GOTO 700
600 E2=DIA/12/LA
610 WRAD=E2/2*LM
700 FOR N=0 TO 15
710 IF A(N,K)=0 THEN DI(N,0)=0:DI(N,1)=0:EL=N-1:N=15:GOTO 740
720 DI(N,0)=23+( 373.75*LOG(2/E1)-640)*(A(N,K)-.4975)
730 DI(N,1)= .4975+(DI(N,0)-23)/(373.75*LOG(2/E2)-640)
740 NEXT N
800 PRINT"ENTER 0 FOR INSULATED BOOM, OR DIAMETER (INCHES) IF METALLIC"
810 INPUT BD
820 BC=.06875*BD/LA
830 FOR N=0 TO EL
840 DI(N,2)=DI(N,1)+BC
850 NEXT N
900 PRINT"THE CORRECTED ELEMENT LENGTHS ARE"
910 PRINT"REFLECTOR ";FNB(DI(0,2)*LA);" FEET="FNB(DI(0,2)*12*LA);" INCHES"
920 ELE(0)=DI(0,2)*LM/2
930 FOR N= 1 TO EL:IF DI(N,2)=0 THEN 1000
940 PRINT"DIRECTOR ";N;FNB(DI(N,2)*LA);" FEET=";FNB(DI(N,2)*12*LA);" INCHES"
950 ELE(N+1)=DI(N,2)*LM/2
960 NEXT N
1000 LD=LA/2
1010 KR=12*LD/E2
1020 LR=1-1/(4.6719*LOG(KR)-8)
1030 TV=LA*LR/2
1040 IF ABS(LD-TV)>.00001 THEN LD=TV:GOTO 1020
1050 ELR=LD+.7*BD/12
1060 ELE(1)=ELR/LA*LM/2
1070 PRINT "CENTER=SUPPORTED RADIATOR LENGTH =";FNB(ELR);"FEET=";FNB(ELR*12);"INCHES"
1200 PRINT :PRINT " ENTER 1= SAVE AS HORIZONTALLY POLARIZED MININEC FILE"
1210 PRINT " 2= SAVE AS VERTICALLY POLARIZED MININEC FILE"
1220 PRINT " 3= REVISE DESIGN
1230 PRINT " 4= QUIT"
1240 INPUT TEM
1250 ON TEM GOTO 2000,2000,300,4000
1260 GOTO 1200
2000 PRINT :PRINT "ENTER NUMBER OF CALCULATION SEGMENTS"
2010 PRINT " 4-MINIMUM
2020 PRINT " 8=REASONABLE ACCURACY"
2030 INPUT SG
2100 INPUT "ENTER FILENAME OF ANTENNA, .GEO IS ADDED";NA$:
2110 INPUT "ENTER FILEPATH TO USE, INCLUDE AND : AND / ";FP$: NA$=FP$+NA$+".GEO"
2120 OPEN NA$ AS #1 LEN=30
2130 FIELD #1, 2 AS S$, 4 AS X1$, 4 AS Y1$, 4 AS Z1$, 4 AS X2$, 4 AS Y2$, 4 AS Z2$, 4 AS RW$
2140 LSET S$=MKI$(EL+2)
2150 PUT #1
2160 Y1=-.2*LM :Y2=Y1
2200 FOR I= 0 TO EL+2
2240 LSET S$=MKI$(SG)
2300 IF TEM=1 THEN X1=ELE(I):Z1=0
2310 IF TEM=1 THEN Z1=ELE(I):X1=0
2320 LSET X1$=MKS$(X1): LSET Y1$=MKS$(Y1): LSET Z1$=MKS$(Z1)
2330 X2=-X1:Z2=-Z1
2340 LSET X2$=MKS$(X2): LSET Y2$=MKS$(Y2):LSET Z2$=MKS$(Z2)
2350 LSET RW$=MKS$(WRAD)
2400 PUT #1
2410 Y1=(Y1+A(16,K)*LM):Y2=Y1
2420 IF I=0 THEN Y1=0:Y2=0
2500 NEXT I
2600 CLOSE #1
2610 PRINT " FILE CREATED AS ";NA$;" ON PATH ";FP$
4000 END
6000 PRINT "ERROR ";ERR;"AT LINE ";ERL
6010 IF ERL=2120 THEN RESUME 2100
6020 RESUME 1200
10000 DATA .482,.482,.482,.482,.482,.475
10010 DATA .424,.428,.428,.432,.428,.424
10020 DATA ,.424,.42,.415,.42,.424
10030 DATA ,.428,.42,.407,.407,.42
10040 DATA ,,.428,.398,.398,.407
10050 DATA ,,,.39,.394,.403
10060 DATA ,,,.39,.39,.398
10070 DATA ,,,.39,.386,.394
10080 DATA ,,,.39,.386,.39
10090 DATA ,,,.398,.386,.390
10100 DATA ,,,.407,.386,.39
10110 DATA ,,,,.386,.39
10120 DATA ,,,,.386,.39
10130 DATA ,,,,.386,.39
10140 DATA ,,,,.386,0
10150 DATA ,,,,.386,0
10160 DATA .2,.2,.25,.2,.2,.308
10170 DATA 7.1,9.2,10.2,12.25,13.4,14.2
10180 DATA 1,2,2,3,2,4
10190 DATA .4,.8,1.2,2.2,3.2,4.2