Professional Documents
Culture Documents
Opedljl
Faculty of Engineering & Technology University of llo~~~~ciri~~
8
2010 7 1
NJTD < > ( ) 48-
57
~i!:.
SDEVELOPMENT OF A COMPUTER-AIDED LEARNING SYSTEM FOR
GRAPHICALANALYSIS OF CONTINUOUS-TIME CONTROL SYSTEMS
JAYEOLA F. OPADIJI
Department of Electrical Engineering, University of florin, llorin, Nigeriae-
~-mailjopadiji@unilorin.edu.ng
ABSTRACT .
We prese.nt the development and deployment process of a computer-aided
learning tool which serves as a training aid for undergraduate control
engineering courses. We.show the process of aigorithm construction ~nd
. implementation of the=software which is also aimed at teaching software- -
. de\(elopment at undergraduate level. The scope of this. project is limited to
.g.raphical:analysis of continuous-time control systems~
O' =
LP, - Li;
'=:1 . /=1
(7)
Ko
12. 1Where Kss =value of Kat the
c n-m stability boundary
5.lf a pole and a zero are next 13. K0 = Design value of K
to each other on the abscissa, 14.The phase margin is given as:
draw a line from _the pole to <i>PM =18o>- LGH(ro1 ) (11).
join the z~ro. 15.Where = value of . at the
1
6.lf two. poles or two zeros are_ s~bility boundary for which .
next to each other on the real IGHI
K
=1 for the design
.
value of
axis, then there is a
breakaway or break-in point
the value of which is gotten as 16. Draw_ sketch lines using the
defined b~low: calc~lated paramet_ers and
n 1 m 1 axioms given above
. ~{a:+-A) =f.; (~~+~") (B)
. 4.3 NYQUIST PLOT ALGORITHM
7. Where p1 arid z ate poles The Nyquist Plot is a mapping of
and zeros on GH(s) and bis the Nyquist path from the s-plane
the breakaway or break-in to the j-plane
point. . . Algorithm for Nyquist path:
1. Get zeros and poles
8.This results in an (n+m-1) 2. Draw a large semi-circle with
order polynomial, one of the centre at the origin of the j axis of
solutions of which gives the this s-plane u~ing:
desired point on the abscissa.
9.The angle of departure and f(x,y)= lim R~(-90sa s+90) (12)
R-.-o
of a complex conjugate pole 3. Evade all points of singularities
. and angle of arrival of a on the ordinate with a semi-circle
complex conjugate zero of using .
GH(s) are stated resp~cti~ely f (x,y)=lim.pff (-90~0 ~+90)
as: (13)
Nyquis{Plot:
1.Do the Nyquist plot using the
0 =1ao> + LGH
0 <9a> following mapping from the
Nyquist path (~-plane) into the j -
9A =18Q> - LGH (eb) . plane: m
6.The limits of the poles on the j _ The constant phase angle circles are
axis is . go.tten from:
1
s=llr:rt(jro+Pe'8){-9(11 <0 <+9Cl) (16) .
l~(ro )~Cose- N Sine (19)
f. Get number poles and zeros
4.4 BODE PLOT ALGORITHM 2. Get maximum value of (max) and
resolution r
The Bode form for the open-loop 3. Initialize i = 1
transfer function used is: 4. Calculate the dB value for each term in
GHQfor=i .
. K(1 + j(J) I z,)(1+ jro I zJ .. (1 +j(J) /Zr:,) 5.Aad all the terms to get the dB value
for GH(i)
jro'(1 +jro / p1)(1+ jro/ p2 ) (1+ jro/ p.,) (17 ) 6. Find the phase angle for each term in
' . Where z's and p's are zeros and
GH(.) for i =
7. Add all the terms to obtain the phase
poles respectively and I is a angle of GH(i)
nonnegative integer 8.Plot point in step 5 against point in step
9. Increment i by r
1.Get number poles and zeros 10. If i is less than max go to step 4
2.Get maximum value of w(max) 11. Terminate run
and resolution r
3.lnitialize i = 1 5.0 SYSTEM IMPLEMENTATION
The implementation of the
4.Calculate the dB.value for each design was done using the Microsoft
term in GH(o1)forro= i Visual BASIC 6.0. The choice of this
software was necessitated by the need to
5.Add all the terms to get the dB demonstrate the process of Rapid
value for GH(i) Application Development (RAD) and
also take advantage of its Graphic User
6.Find the phase angle for each Interface (GUI) to produce a user-friendly
term in GH(0) for ro i = environment for the software that is being
developed. Shown below is the main
7 .Add all the terms to obtain the menu of the developed software and
phase angle of GH(i) sample results of two of its modules.
5.1 . TIME RESPONSE MODULE
8. Find the logarithm valu .ofro=I Oh clicking on the "lime Response"
9. Plot point in step 5 against button on the main menu window of
point in step 8 figure 2, the main menu window is
unloaded and the time response input
10. Plot point in step 7 against parameter window pops up as shown in
point in step 8 figure3. .
11. Increment i_by r
,...,..,. ,.,.........
NJTD (2010) 7(1) 48- 57
...,_
fJ ~:.:.Jl.~"vJ. m'">
~1 -
1- iorn
..
P'1 --=
,let
:; I
fQ%
1---
~ I ""...... I
XSc-~
for within which the user wishes to Figure 4: Sample result of the
time-response module
mo~itorthe system response. The 5.2 ROOT-LOCUS MODULE
The Root Locus input
software calculates the damping f?iarameter is loaded when the
'Root Locus" button is clicked
ratio and the undamped natural on the main menu window.
Figure 5 shows the input
frequency for the system. If the parameter window .for the root
locus module. Entering the
input parameters and clicking
damping ratio is between 0 and on the "Sketch Locus" button
hides the input parameter
0.67, the "Plot Graph" button is window and loads the root
locus graph window shown in
enabled. The input parameter figure 6:
window is hidden when the user'
shown in Figure 4.
-- _
.... _
..._ ..
I ............ "
Fi
I o.-~.~ I
~-------' ---- it-
Locus Plot
jJ JHI'..
shown in figure 7. After ent~ring a!I the 1--~~~->- ~~~~---,
c-w....
the system. Figure 8 shows the Nyquist I "' .
Path window and figures 9 11 show what
~~
j>UI
..
f'tl.tMCt.. , ....
Hdflf , I
,........ ,.....
l _ H _a l _ ~ . _ ,...~ Figure 10: Nyquist Plot of a
Type-1 system
--
P':"..t''.&_.~1.> .
c... ....,..
I
-....- -
n~offadits ~
ft~A:;.
....
po--
Ut~ rJlei-or
r z-
r"'3
x
the plot of the system whose
parameters had been entered in
the prev_ i ous interface. This
window also has two input fields
~- r- SICl:MC~ that allow the user to plot different
l"'4P"" rs- r-...d:O. M and N circles, which form the
fOl.il'~ Poir-
~ r oi;rtt - ... chart for different values of M and
f ... P<le r- fl'h~ N as entered by the user. This is
illustrated in figure 15. Individual
M and N circles are plotted each
time the "Trace Chart'' button is
clicked with a new value of M or N.
H[tiJ r p.e 10 o 1 wl
....... ,.._..._
............. l'"3 .._ .:- Ji"-;:J
''"z.,' P-
r-
-w-
Hj- xi S -...
,..._ r-
,...,z... r-
a1
-w. .
1~1lQWJ'211'01
f u1~1ftt:
e f#>Z... r-
. .. .._"""
~~ ~'',,,:
====.==~ Figure 14: Input Parameter
r . .~~~
~~-1 Sheet for Nichols Plot
Figure 14: Input Parameter Sheet for Nichols Plot
T\
Figure 15: Bode Magnitude and Phase Plots Window
can be said that objectives of this
project work have been satisfied.
However, this is not
6.0 SYSTEM DEPLOYMENT to say that the software does not
After the successful completion of
have its limitations just like any
the design implementation stage,
the software was compiled into an other software. The software is not
executable file. and deployed on meant for use by starters in the
the computer network server in
field of control engineering; it is
the Department of Electrical
Engineering, University of llorin , expected to be used by experts for
from where it can be accessed teaching purposes and illustrating
from any workstation within the
the performance of different
department local area network.
The software is presen tly systems. A user of the software
undergoing a period of criticism must have a good understanding
from user, which will enable it to be
of control system representations
upg'raded based on some facilities
which users expect to see on it and graphical tools used in
that are not currently present in analyzing control systems before
the system. The deployment was
the software can be of any use.
done on a system running
Microsoft Windows XP .operating REFERENCES
system. All other workstations Aho A.V., Hopcroft H.E. and
only have icons pointing to the Ullman J.D. (1974): The Design
software on the server. and Analysis of Computer
Algorithms;
Addison-Wesley Publishing
Company, Essex, England.