WEEK 9 ROOT LOCUS PLOTTING
ROOT LOCUS PLOTTING PREPARATION FOR MATLAB
For a FOPDT system, the system transfer function (TF) is
Using Padé's approximation for the exponential term, the TF becomes
For a proportional (only) controller, the controller transfer function is
So, the OLTF for a FOPDT with proportional control becomes
What you put into MATLAB is
and
For a proportional-integral controller, the controller transfer function is
So, the OLTF for a FOPDT with proportional integral control becomes
What you put into MATLAB is
and
Turn on Computer, right side, back
If necessary, turn on monitor, front, bottom
Wait
Type win (this is the software code for "Windows")
Find the MATLAB folder and double click on it, then double click on MATLAB
Type demo (this gives you choices of MATLAB demonstrations)
Type 1 (this chooses the "Introduction to basic MATLAB commands" part of the demonstration)
Go through the various information screens, reading and digesting as much as you can. Touch any key to go from one information screen to the next one.
Type 2 (this chooses the "Graphics" part of the demonstration)
Type 9 (this chooses the "Interesting Plots!" part of the demonstration)
Go through the various plot screens. Touch any key to go from one plot screen to the next one.
Type 0 (this chooses to "Quit" the demonstration)
Type help rlocus (this lets MATLAB tell you how it does root locus calculations)
Notice it needs num, the numerator of the OLTF , and den, the denominator of the OLTF. So let's enter those.
Let's do an example that is
Type num = 0.5 (Leave out the Kc)
Type den = [ 0.5 1.5 1 ] (We enter the coefficients of the polynomial, with spaces between them, in order of the descending power of s. You have to put the square brackets around it.)
Type k = 0:0.5:10 (We tell MATLAB we want to calculate the root locus for values of Kc from 0 (zero) to 10 in steps of 0.5)
Type r = rlocus (num, den, k) (This tells MATLAB to do it. The results are in a table named "r")
Type plot (r,'o') (This tells MATLAB to make a plot of the results table.)
Type title(' your name ') (This puts a title on the graph)
Connect the printer to your computer with the printer selector switch.
Bring the plot window to the front; choose "Print" from the "File" menu. (This puts the plot on the paper in the printer.)
You can also "Copy" the graphs or data output and "Paste"
into Microsoft Word.
Include root locus plots for your system in the reports for weeks
10, 12 and 14
Week 10 Report
A draft of Week 10 Report is due the second school day before the next scheduled lab meeting.
WEEK 10 REPORT CONTENTS
PROPORTIONAL CONTROLLER DESIGN
Introduction
Theory & Background
Description & explanation of system components & connections
Schematic diagram
Input function(s) and output functions
Theory & governing equations for components, system and proportional-only feedback controller
Time domain and Laplace domain descriptions, OLTF, CLTF, characteristic equations, Kcu, wu
Quarter decay tuning parameters
Block diagram
Previous system results (gain, time constant, etc.)
Root locus
Modelling
Equations & methods used in modelling
Results
Modelling results for proportional-only control (Kcu, quarter decay and critical damped tuning parameters, s.s. error and its dependence on Kc)
Design results for system performance with control
Discussion
Comparison of theory and modelling of system response with feedback
control
Conclusions
Values of Kc for specified system response
Recommendation
Appendices
Physical properties
Modelling diagram, equations
Attachments
Include a sheet for each team member that describes the contribution to the work in the laboratory since last reported.
Disk File Suggestion: Use file names beginning with "WR10"