home *** CD-ROM | disk | FTP | other *** search
- -- card: 3804 from stack: in
- -- bmap block id: 3968
- -- flags: 0000
- -- background id: 2761
- -- name:
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 4004
- -- rect: left=55 top=184 right=210 bottom=164
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: StopF
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 4004
- -- rect: left=56 top=224 right=250 bottom=165
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: StepF
-
-
- -- part 6 (field)
- -- low flags: 01
- -- high flags: 4004
- -- rect: left=54 top=141 right=167 bottom=163
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: StartF
-
-
- -- part 7 (field)
- -- low flags: 00
- -- high flags: 4004
- -- rect: left=188 top=141 right=167 bottom=254
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: FinStart
-
-
- -- part 8 (field)
- -- low flags: 00
- -- high flags: 4004
- -- rect: left=188 top=183 right=209 bottom=254
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: FinStop
-
-
- -- part 11 (field)
- -- low flags: 00
- -- high flags: 4004
- -- rect: left=189 top=224 right=250 bottom=255
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: FinStep
-
-
- -- part 13 (field)
- -- low flags: 01
- -- high flags: 4004
- -- rect: left=291 top=140 right=166 bottom=400
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Len
-
-
- -- part 14 (field)
- -- low flags: 00
- -- high flags: 4004
- -- rect: left=413 top=141 right=167 bottom=479
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: LenIn
-
-
- -- part 19 (field)
- -- low flags: 00
- -- high flags: 4004
- -- rect: left=413 top=184 right=210 bottom=479
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: DiaIn
-
-
- -- part 20 (field)
- -- low flags: 01
- -- high flags: 4004
- -- rect: left=291 top=183 right=209 bottom=400
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Dia
-
-
- -- part 21 (field)
- -- low flags: 01
- -- high flags: 4004
- -- rect: left=291 top=226 right=252 bottom=400
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Dia
-
-
- -- part 22 (field)
- -- low flags: 00
- -- high flags: 4004
- -- rect: left=291 top=225 right=251 bottom=400
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Xform
-
-
- -- part 23 (field)
- -- low flags: 00
- -- high flags: 4004
- -- rect: left=412 top=226 right=252 bottom=478
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: XforIn
-
-
- -- part 24 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=82 top=259 right=280 bottom=188
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Print Results
- ----- HyperTalk script -----
- on mouseUp
- put line 2 of card field "FREQ1" of card id 5160 into PRINT1
- put line 2 of card field "FREQ2" of card id 5981 into PRINT2
- put line 2 of card field "FREQ3" of card id 6565 into PRINT3
- if PRINT1 <> " " then print card id 5160
- if PRINT2 <> " " then print card id 5981
- if PRINT3 <> " " then print card id 6565
- end mouseUp
-
-
-
- -- part 26 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=300 top=278 right=300 bottom=400
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Calculate
- ----- HyperTalk script -----
- on mouseUp
- set numberFormat to 0.00
- put " Calculation in Process" into the message box
- put line 1 of card field "FinStart" of card id 3804 into f1
- put line 1 of card field "FinStop" of card id 3804 into f2
- put line 1 of card field "FinStep" of card id 3804 into f3
- put (f2-f1)/f3 into nf
- put nf+1 into nf
- put line 1 of card field "LenIn" of card id 3804 into L
- put L/39.37 into L
- put line 1 of card field "DiaIn" of card id 3804 into D
- put D/39.37 into D
- put D/2 into a
- put line 1 of card field "XforIn" of card id 3804 into T
- repeat with i =1 to 50
- if i > nf then exit repeat
- if i > 27 then put "Too many frequencies" into msg
- if i > 27 then beep 1
- if i > 27 then wait 8 seconds
- if i > 27 then exit repeat
- put f1+(i-1)*f3 into F
- put 300/F into WL
- put wl/4 into QWL
- if L > QWL then put "Lenght > halfwavelength--calculation terminated"
- if L > QWL then beep 1
- if L > QWL then wait 8 seconds
- if L > QWL then exit repeat
- put 6.28319*L/WL into KL
- put 0.0517-2.0045*KL+29.0195*(KL)^2-13.2279*(KL)^3+9.16*(KL)^4 into R
- put -0.0567+10.1642*KL+12.3257*(KL)^2-11.5684*(KL)^3+6.7264*(KL)^4 into X
- if i <= 9 then put F into line i+1 of card field "FREQ1" of card id 5160
- if i > 9 and i <= 18 then put F into line i-8 of card field "FREQ2" of card id 5981
- if i > 18 and i<= 27 then put F into line i-17 of card field "FREQ3" of card id 6565
- if i <= 9 then put R into line i+1 of card field "RIN1" of card id 5160
- if i > 9 and i <= 18 then put R into line i-8 of card field "RIN2" of card id 5981
- if i > 18 and i<= 27 then put R into line i-17 of card field "RIN3" of card id 6565
- put 2*L/a into ARG
- put ln(ARG) into LARG
- put 120*(LARG-1) into xxx
- put 1/(tan(KL)) into CTKL
- put -(xxx*CTKL-X) into Xin
- if i <= 9 then put Xin into line i+1 of card field "XIN1" of card id 5160
- if i > 9 and i <= 18 then put Xin into line i-8 of card field "XIN2" of card id 5981
- if i > 18 and i<= 27 then put Xin into line i-17 of card field "XIN3" of card id 6565
- put R/50 into RR
- put Xin/50 into XXin
- put (sqrt((RR-1)^2+XXin^2)/sqrt((RR+1)+XXin^2)) into RHO
- put 1-RHO^2 into S
- put 4.343*ln(S) into SS
- if i <= 9 then put SS into line i+1 of card field "Loss1" of card id 5160
- if i > 9 and i <= 18 then put SS into line i-8 of card field "Loss2" of card id 5981
- if i > 18 and i<= 27 then put SS into line i-17 of card field "Loss3" of card id 6565
- end repeat
- hide message box
- end mouseUp
-
-
-
- -- part 28 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=82 top=290 right=310 bottom=189
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Plot M-M Loss
- ----- HyperTalk script -----
- on mouseUp
- open Cricket Graph
- end mouseUp
-
-
-
- -- part 30 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=209 top=285 right=342 bottom=304
- -- title width / last selected line: 0
- -- icon id / first selected line: 11045 / 11045
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: home
- ----- HyperTalk script -----
- on mouseUp
- go to HOME
- end mouseUp
-
-
-
- -- part contents for card part 6
- ----- text -----
- Start Freq (MHz)
-
- -- part contents for card part 3
- ----- text -----
- Stop Freq (Mhz)
-
- -- part contents for card part 4
- ----- text -----
- Freq Step (MHz)
-
- -- part contents for card part 13
- ----- text -----
- Half-Length
-
- -- part contents for card part 20
- ----- text -----
- Diameter
-
- -- part contents for card part 22
- ----- text -----
- Xformer Ratio
-
- -- part contents for card part 23
- ----- text -----
- 1.0