Beruflich Dokumente
Kultur Dokumente
d b||| DQ>
JML
H1ML
Figure 2. The fle and directory locations.
a....aaaa..... aaaaa..... aaaaaa ... . a_
---- --
PNbNNPPPY
|
DGRn
z<
H- f I P :
9|^I J P/
9jm] - J |9
t FA5tm
.
|
|
|
|
|
|
|
|
|
1D 0R
I '
Z
Figure 3. The design of the antengui . htm fle.
The name of the upper frame is specifed as "top" and uses as
the source page the fle antenframel . htm, while the name of
the lower frame is specifed as "bottom" and uses as the source
page the fle antenframe2 . htm.
The source fle antenframe l . htm includes a form ele
ment that is shown with blue dotted lines in Figure 3. The HTML
code of the form element is given in Table 4. The frst line of
this code calls the CGI program ra tweb . exe. Since the target
fame is specifed as "bottom," the upper frame named "top"
will remain unchanged, and all the outputs will be displayed in
the lower frame, named "bottom. " In the second line, an HTM
input feld of type "hidden" is created. This feld is used to send
data to the Webserver and is not displayed by the browser. The
name of the m-fle to run is specifed afer the value tag, and in
this example, it is an tengui . m.
The source fle antenframe l . htm includes 10 text boxes,
one check box, two drop-down boxes and two push buttons.
The names and values of each of these elements should be
specifed. For example, the name and initial value of the text
box next to the string "f [MHz]=" are specifed as freq and
300, respectively. The names of two pushbuttons are specifed
as TwoDGraph and ThreeDGraph, respectively.
The OutputHTML directory consists of only the ou
t
put
HTM document antenframe2 . htm. This fle difers from
the input HTM document antenframe2 . htm only in the
location of the image source fle. In the input HTML docu
ment antenframe2 . htm, the image fle is specifed as <img
s rc=" . . / Images /ClearGraph . j pg ">, while in the
output HTM document the image fle is specifed as <img
src=" $ grafi k$ ">. The input fle always displays the same
image, called ClearGraph . j pg, but the output fle displays
the image specifed in the m-fle as outputs . grafik.
After creating the input and output HTMLfles, a MTAB
m-fle should be written to process the received input data and
compute the results. Table 5 shows a shortened version of the
m-fle antengui . m. The second line of the MTLAB code
changes the directory to the directory specifed as figdi r in the
mat web . conf confguration fle. The third line deletes all the
j peg image fles in that directory that have names beginning
with Graph and that are older than 0. 1 hours. This prevents
the server from being overloaded with a huge number of
image fles. The fourth line initializes the retur string resp.
Between the sixth and 1 7th lines, values of the input variables
are frst converted from strings to numbers and then assigned to
variables, which will be used in the computation. Lines 1 8 to 20
check whether or not the specifed variables exist. For example,
if a user presses the "DRAW GRAPH" push button in the input
HTM fle, a variable named TwoDGraph is created, and the
MTLAB command i sfield ( input s , ' TwoDGraph' ) returs
the value one. However, since the "3D GRAPH" push button is
not pressed at the same time, a variable named ThreeDGraph
is not created, and the MTLAB command i sfield ( inputs ,
' ThreeDGraph' ) returs the value O. The MTLAB script can
determine which pushbutton is pressed and which type of graph
to draw. If the check box is checked, a variable named dBScale
IEEE Antennas and Propagation Magazine, Vol. 53, No. 4, August 201 1 255
256
Table 4. The HTML code of the form element.
<form action=" / cgi -bin/matweb . exe" method="POS T" target="bottom">
<input type="hidden" name="mlmfi le" value="antengui " >
. . .
. . .
< / form >
Line
1
2
3
4
5
6
7
8
9
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
20
2 1
1 53
1 54
1 55
1 56
1 5 7
1 58
1 5 9
1 60
1 6 1
1 62
1 63
1 64
1 65
Table 5. The MATLAB m-fle antengui . m.
MATLAB Code
function resp = antengui ( inputs )
cd ( inputs . figdi r ) ;
wscleanup ( ' Graph* . j pg' , 0 . 1 ) ;
resp = char ( ' ' ) ;
N str2num ( inputs . N) ;
M str2num ( inputs . M) ;
d str2num ( inputs . d) ;
dx str2num ( inputs . dx) ;
dy str2num ( inputs . dy) ;
faz = str2num ( input s . Phas e) ;
f str2num ( inputs . freq) * l e 6 ;
r str2num ( inputs . r ) ;
rmax str2num ( inputs . rmax) ;
secim str2num ( input s . ArrayType ) ;
thetaorphi = str2num ( inputs . TetaorPhi ) ;
theta_or_phi = str2num ( inputs . RadiationPlane ) ;
dB = i sfield ( inputs , ' dBScale ' ) ;
ThreeD
TwoD
i sfield ( inputs , ' ThreeDGraph' ) ;
i sfield ( inputs , ' TwoDGraph ' ) ;
% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fig=figure ( ' vi s ible ' , ' o f f ' ) ;
polar ( angler, Array)
reqld=inputs . mlid;
Filename=sprintf ( ' Graph% s . j pg' , reql d) ;
drawnow;
wsprintj peg ( Fig, Filename ) ;
close ( Fig) ;
outputs . grafik= [ . . /AntenGUI / images / ' , Filename ] ;
cd ( inputs . resdi r ) ;
templateiil e = which ( ' antenframe2 . htm' ) ;
resp = htmlrep ( outputs , templatefil e ) ;
IEEE Antennas and Propagation Magazine, Vol. 53, No. 4, August 201 1
is created, and the MTLAB command i sfield ( inputs @
' dBScale' ) rets the value one, and if not checked, it returs
the value zero. Between the 22nd and 1 53rd lines, all the
computations are performed. If a two-dimensional (2D) graph
is requested, two arays, called angler and Array, are created.
Line 1 55 creates an empt fgure; line 1 56 plots angler as a
fnction of Array into this fgure in polar coordinates. In line
1 60, this fgure is saved to a fle the name of which is specifed
in the 1 5 8th line. This fle is assigned to a variable outputs .
grafik. Line 1 65 calls the fnction htmlrep with the output
structure and with the output HTML fle name. The fnction
htmlrep looks in the output fle antenframe2 . htm for
variables with values that are the variable names enclosed in
dollar signs, e. g. , "$ grafik$" and then replaces values of all
these variables with the corresponding values of variables of
the same name specifed in the output structure.
3. Web-Based Vi rual Tool s and Exampl es
3. 1 The AntenGUI Tool
The Web-based virtual tool AntenGUI, as displayed in
Figure 4, allows the user to visualize radiation characteristics
of linear, rectangular, and circular periodic arrays of isotropic
radiators. The user may choose fom a dropdown box to
design a linear or rectangular or circular aray. The user then
specifes the number of elements, operating frequency, inter
element spacings, and flls in the dB-scale check box. Pressing
the 3D GRPH button plots the three-dimensional radiation
patter of the designed array, whereas the DRW GRPH
button plots a two-dimensional cross section of this graph. The
user determines the two-dimensional radiation-patter plane
by selecting Theta- or Phi-Planes from a dropdown box and
specifing the ThetalPhi value.
- p - t g -
qLL1)!k &!eS\0l
*, Q -
Figure 4. The horizontal radiation pattern of a nine-element
linear array ( / 1 50 MHz, d 0. 5 m A/4 ).
ql1lT)IK l>I`0l
| & `
Figure 5. The horizontal radiation pattern of a 4 ^ 7 rec
tangular, periodic, linearly phased array of isotropic
radiators ( / = 300 MHz, dx d
y
0.25 m A/4 ).
qLt150kL>VGI
Figure 6. The three-dimensional radiation pattern of a 4 ^ 7
rectangular, periodic, linearly phased array of isotropic
radiators ( / 300 MHz, dx d
y
0.25 m A/4 ).
This Web-based tool is quite similar to the MTAB
based virtual tool AntenGUI, and directions and explanations
on the use of the tool can be found in [ 1 4] . However, there are
slight diferences. The MTAB-based version allows the user
to arbitrarily locate the radiators one-by-one, by clicking with
the mouse, but this capability is not included in the Web-based
version. Also, the Web-based version does not include beam
steering capability, and the coordinates of the radiators cannot
be displayed. Finally, some sliding bars have been removed.
IEEE Antennas and Propagation Magazine, Vol. 53, No. 4, August 201 1 257
K
Mw0R 10 0 I
m
qL1IJ5lkL L eS\'C!
jQ
Figure 7. The vertical radiation pattern (-z plane) of an
ll-element circular array of isotropic radiators ( I = 600
MHz, r = 0. 5 m = A ).
O I
.
x
Figure 8. The three-dimensional radiation pattern of an
ll-element circular array of isotropic radiators ( I = 600
MHz, r = 0. 5 m A ).
Figure 4 shows the horizontal radiation patter of a linear
aray consisting of nine isotropic radiators with an inter-ele
ment spacing of d = 0.5 m. The operating frequency was cho
sen as 1 = 1 50 MHz, and the graph was plotted on the dB scale.
The radiators are also displayed in the fgure with small red
circles.
The next example belongs to a planar array consisting of
N = 7 and M = 4 isotropic radiators in the y and directions,
respectively. The inter-element spacings along the and y
coordinates were chosen as dx = dy = 0. 25 m. The fequency
was 1 = 300 MHz. The inter-element phasing along the
direction was specifed as Phase = 90 , so the phases of the
elements in the second line ( M = 2 ) delayed by 90 the phases
of the elements in the frst line ( M = 1 ) etc. Figure 5 shows
horizontal radiation patter. Figure 6 presents the three
dimensional radiation patter of this array.
The last example was a circular array, where 1 1 isotropic
radiators were located symmetrically on a circle with radius
r = 0.5 m. The operating frequency was 1 = 600 MHz. The
vertical radiation patter in the yz plane is illustrated in Fig
ure 7, and the three-dimensional radiation patter is given in
Figure 8 .
3. 2 The SSPEGUI Tool
The Web-based virtual tool SSPEGU, displayed i n Fig
ure 9, allows users to investigate radiowave propagation
through a non-homogenous atmosphere over a non-fat Earth's
surface. This tool is based on the split-step parabolic-equation
(SSPE) method.
The user specifes the operating frequency, the range
between the transmitter and receiver, the height of the trans
mitter, the antenna tilt angle, and the beamwidth of the trans
mitted Gaussian signal. Atmospheric refractivity is determined
by two height values and the slope values of two linear seg
ments. A terrain profle can be chosen fom ten diferent pre
defned terrains via a dropdown box. The user may choose to
plot the fgure in high or low resolution, taking into account that
high resolution requires more computation time.
4msphem Reham.
*MP ~T| M Fwtm \
P m[ wg= wm.o
WIWH r
WI9 r
'" I
qL1l 1$lk 1l-m5VCI
* j@
Figure 9. The web-based SSPEGUI tool with a non-smooth
terrain profle.
258 IEEE Antennas and Prpagation Magazine. Vol. 53, No. 4, August 201 1
LoadTemInI
MspmRehamq:
M^ fi
M^
IIW
WIWM
qL1IT5lk 1 Le IV'0I
Figure 10. Propagation over an irregular terrain through a
standard atmosphere.
This Web-based tool is very similar to the MTAB-based
virtual tool SSPEGU, introduced in [ 1 5] . Again, there are
some diferences between the Web-based and MTLAB-based
versions. The main diference is in the determination of the
terrain profle. The MTLAB-based version allows the user to
design his/her own terrain profle by marking terrain points on
the Earth's surface with a mouse click. It also enables saving
a generated terrain profle in a fle. Pre-generated terrain data
can also be loaded from a fle. However, the Web-based tool
only enables loading the terain from 1 0 diferent pre-generated
profles.
Figure 1 0 visualizes propagation over four sequential
hills through standard atmosphere. Here, the operating fre
quency was 1 00 MHz, the maximum range was 40 km, and
the transmitter was at 400 m. The antenna was not tilted, and
the beamwidth was 1 0 downwards. The white line in the fg
ure represents a linearly increasing refactivity with a slope
of 1 1 7 M/km, which corresponds to a standard atmosphere
including the Earth's curvature. The fgure shows the three
dimensional feld strength as a function of the range/height.
3. 3 The FilterGUI Tool
The Web-based virtual tool FilterGU, displayed i n Fig
ure 1 1 , simplifes and automates the design procedure for fl
ters. The tool designs lumped-element flters with a classical
method, and obtains the corresponding transmission-line and
microstrip-line flters via systematic transformations. This tool
uses the Butterworth approach for designing lumped flters,
Kuroda transformations for distributed low-pass flters, and
impedance/admittance inverters for distributed bandpass or
band-stop flters [ 1 6] .
The flter type (Iow-pass/high-pass/bandpass/band-stop)
is frst selected fom a dropdown box. The user specifes the
3 dB cutof fequency and the out-of-band attenuation at a user
specifed fequency for low-pass or high-pass flters. The center
fequency, pass-band, stop-band, and attenuation are supplied
for bandpass or band-stop flters. The minimum and maximum
plotting fequencies are stated. The thickness and relative
permittivity of the dielectric material used in the microstrip-line
are specifed. Pressing the design button plots the schematics of
the lumped, scattered, and microstrip-line flters, and the layout
of the microstrip-line flter. The user may switch among these
plots by pressing the appropriate radio buttons. The schematics
include all element values and dimensions. The frequency
response of the flter, i . e. , a graph of the insertion loss as a
fnction of frequency, is shown in a separate plot.
Figure 12 shows the design of a bandpass flter with a
900 MHz center fequency and a 3 dB bandwidth of
BW3 dB 300 MHz, which yielded 40 dB attenuation at
300 MHz and 1 200 MHz. The microstrip specifcations were
chosen to have a relative permittivity of Gr 9. 6 and a thick
ness of 1 . 27 mm. The microstrip-flter schematic, including the
Figure 11. The Web-based FiterGUI tool.
~~~~
r'--
=+
^
W1 w W! m W! Wm w1 m
UMWw LWWm UWMm UWm
f @ C gg@4
. ,. 1
.N
Figure 12. The design of a bandpass flter with 900 MHz
center frequency, 300 MHz 3 dB bandwidth, and 40 dB
attenuation at 300 MHz and 1500 MHz.
IEEE Antennas and Propagation Magazine, VoL 53, No. 4, August 201 1 259
calculated dimensions, is shown on the upper right side, while
the fequency responses of the lumped and the scattered flter
are plotted in the lower right part of the fgure. The graphs can
be zoomed by clicking on them, and simulation results can be
exported by using the export button.
4. Concl usi ons
The design of a MTLAB Web-server application has
been discussed. The installation and confguration of Web
server sofware and MTLAB Web Server, and the preparation
of HTM documents and m-fles, were also presented. Three
MS-based virtual laboratories, AntenGU, SSPEGU, and
FilterGUI, were introduced. The AntenGUI tool visualizes
the aray factor of periodic, planar arrays. The SSPEGU tool
illustrates radiowave propagation over non-smooth terrains
and through various refactivity profles. The FilterGU tool
designs lumped-element, transmission-line, and microstrip-line
flters. All can be accessed remotely on the Interet with only a
browser. A MTLAB compiler is not required.
All of these tools can be used in lectures such as "Anten
nas and Propagation," "Radiowave Propagation," "Microwave
Filter Design," etc. The lecturer may assign individual home
work, which could be done remotely fom a university lab and!
or home.
5. References
1 . S. Uran and K. Jezemik, "Virual Laboratory for Creative
Control Design Experiments," IEEE Transactions on Educa
tion, 51, 1 , February 2008, pp. 69-75.
2. S. Uran, D. Hercog, and K. Jezerik, "MATLAB Web Server
and Web-Based Control Design Leaing," IECON 2006 -
32nd Annual Conference on IEEE Industrial Electronics, 1-11,
2006, pp. 5347-5352.
3. S. Uran and K. Jezerik, "MATLAB Web Server and M-File
Application," 1 2th Interational Power Electronics and Motion
Control Conference, 1-4, 2006, pp. 495-499.
4. W S. Hu, G. P. Liu, D. Rees, and Y. L. Qiao, "Design and
Implementation of Web-Based Control Laboratory for Test
Rigs in Geographically Diverse Locations," IEEE Transactions
on Industrial Electonics, 55, 6, June 2008, pp. 2343-2354.
5. Y. L. Qiao, G. P. Liu, G. Zheng, and W S. Hu, "NCSLab:
A Web-Based Global-Scale Control Laboratory with Rich
Interactive Features, " IEEE Transactions on Industrial Elec
trnics, 57, 1 0, October 201 0, pp. 3253-3265.
6. C. A. Ramos-Paja, J. M. R. Scarpetta, and L. Martinez
Salamero, "Integrated Leaing Platform for Interet-Based
Control-Engineering Education," IEEE Transactions on
Industrial Electronics, 57, 1 0, October 201 0, pp. 3284-3296.
7. A. Valera, J. L. Diez, M. Valles, and P. Albertos, "Virtal
and Remote Contol Laboratory Development," IEEE Contl
Systems Magaine, 25, 1 , February 2005, pp. 35-39.
8. P. Van, M. Valkama, and M. Renfors, "Distance Learing
in Communications Signal Processing Using MATLAB Web
Server," Norsig 2004: Proceedings of the 6th Nordic Signal
Processing Symposium, 46, 2004, pp. 244-247.
9. B. L. St and J. D. Gibson, "Signals and Systems Using
MATLAB: An Integrated Suite of Applications for Exploring
and Teaching Media Signal Processing," Proceedings of the
35th Frontiers in Education Conference, October 2005, pp.
F2E-21 -F2E-25.
1 0. D. W Wu, A. Dikshit, and W Z. Zhao, "Medical Imaging
Curriculum Development: An Interactive Simulation System
for Diferent Modalities," Proceedings of the 26th Annual
Interational Conference of the IEEE Engineering in Medicine
and Biology Society, 26, 2004, pp. 5 1 72-5 1 75.
1 1 . M. deMagistris, "A MATLAB-Based Virtual Laboratory
for Teaching Introductory Quasi-Stationary Electromagnetics,"
IEEE Transactions on Education, 48, 1 , Febrary 2005, pp. 8 1 -
88.
1 2. B. Vural, A. Kizil, and M. Uzunoglu, "A Power Quality
Monitoring System Based on MATLAB Serer Pages," Turkish
Joural ofElectrical Engineering and Computer Sciences, 18,
pp. 3 1 3-325.
1 3 . F. Judex, G. Zauner, and F. Breitenecker, "Introducing
MATLAB into Basic Mathematic Lectures Using a Custom
E-Learing System," Proceedings ofthe IT! 2008 30th Intera
tional Conference on Information Technology Interfaces, 2008,
pp. 209-21 4.
1 4. L. Sevgi and C. Uluisik, "A MATLAB-Based Visualiza
tion Package for Planar Arrays of Isotropic Radiators," IEEE
Antennas and Propagation Magaine, 47, 1 , February 2005, pp.
1 56- 1 63.
1 5 . L. Sevgi, C. Uluisik, and F. Akleman, "A MATLAB-Based
Two-Dimensional Parabolic Equation Radiowave Propagation
Package," IEEE Antennas and Prpagation Magazine, 47, 4,
August 2005, pp. 1 64- 1 75.
1 6. M. A. Uslu and L. Sevgi, "A MATLAB-Based Filter-Design
Program: From Lumped Elements to Microstrip Lines," IEEE
Antennas and Prpagation Magazine, 53, 1 , February 201 1 , pp.
2 1 3-224.
1 7 . The Apache server homepage: htp: //www. apache. org/
httpd.html.
1 8. The Ofcial Microsof lIS Site: ht: //www. iis. net.
1 9. The MathWorks Inc. , MATLAB Web Server User's Guide:
http://www. mathworks. com. @
260 IEEE Antennas and Propagation Magaine, Vol. 53, No. 4, August 201 1