Lab Manual Control Systems Final
Lab Manual Control Systems Final
Control Systems
Lab Manual Control Systems
Name: __________________________
Prepared by:
Signature:
Supervised by:
Engr. Abubakar
Lecturer
CIIT, Sahiwal
Signature:
Approved by:
PREFACE
Scope of the Course
To introduce modeling and linearization of dynamic systems. To introduce frequency
based controller design and analysis techniques.
BOOKS
Text Books
1. Modern Control Engineering by K. Ogata, 4th edition, Prentice Hall
Reference Books
1. Feedback Control Systems, 3rd edition, by Stefani, Savant, et. al., 4th Edition,
Oxford University Press
2. Feedback control of dynamic systems by Franklin and Powel, 5th edition,
Pearson
LEARNING OUTCOMES
GRADING POLICY
Lab Work & Viva Voce Exam 100Marks
Performance of Experiments, Assignments 25%
Sessional –I Viva/Practical 10%
Sessional –II Viva/Practical 15%
Terminal Examination/Viva/Lab Project 50%
Each experiment performance will be included in the grading. Lab project can be
assigned in groups or to individuals.
TABLE OF CONTENTS
Preface................................................................................................................................ iv
Books ................................................................................................................................. iv
Learning Outcomes ............................................................................................................ iv
Grading Policy ................................................................................................................... iv
List of Equipment .............................................................. Error! Bookmark not defined.
List of Experiments ..............................................................................................................1
Experiments Relevant to Learning Outcomes .....................................................................2
Basic Requirements and Safety Regulations ..................... Error! Bookmark not defined.
Experiment No.1 Introduction to MATLAB and Simulink .................................................3
1.1 Objective ....................................................................................................3
1.2 Introduction to MATLAB ..............................................................................3
1.2.1 The MATLAB Interface .....................................................................................3
1.2.2 Variables .............................................................................................................5
1.2.3 Built-In Functions and Variables ........................................................................5
1.2.4 Binary Operations in MATLAB .........................................................................6
1.2.5 The Help Section.................................................................................................7
1.2.6 Vectors/Arrays ....................................................................................................9
1.2.7 Matrices.............................................................................................................11
1.2.8 Lab Tasks ..........................................................................................................12
1.3 Introduction to Simulink ............................................................................ 13
1.3.1 The Simulink Interface .....................................................................................13
1.3.2 Lab Task............................................................................................................16
Experiment No.2 Laplace Transform Using MATLAB, LTI Viewer and Modelling of
First Order System in Simulink .........................................................................................18
2.1 Objective ................................................................................................. 18
2.2 Laplace Transform Using MATLAB ............................................................ 18
2.2.1 Inverse Laplace Transform Using MATLAB ...................................................18
LIST OF EXPERIMENTS
The >> symbol indicates that MATLAB is ready to accept input and it is called a prompt.
Type in the following and press enter:
>> x = 3
You will see two changes: First, MATLAB will output the value now stored in x.
Second, on the right, x will appear in the list of variables. When there is a long process
taking place, the prompt will disappear and appear again when the calculation has
completed. Usually when you add a semicolon after a statement, it means that the output
won’t be shown on the screen.
1.2.1.2 The MATLAB Editor
When writing long programs, or writing programs you may want to edit or run over and
over, it is better to create a script in the editor. Click “New Script” near the top left to
open the editor.
The editor is where you will write and save all your programs. For example, type the
following code in the editor:
clc;
x = inv(x);
disp(x);
And press “Run”. Once you do that, it will ask you where to save your script. Save it
somewhere. You should see something similar to the following:
Apart from normal division in MATLAB, there is also the left-division operator, \. It
divides the second number (on its right) by the first and gives the result.
You can use parentheses in MATLAB as you would in normal mathematics, or on your
calculator. For example,
>> (3 + 5) * 8
ans =
64
>> 3 + 5 * 8
ans =
43
Note that MATLAB does not simply evaluate expressions from left to right, but it
respects the order of operations, which means that it does multiplication and division
first, then addition and subtraction.
1.2.2 Variables
In MATLAB, you can store the results of any calculation in a variable. Try the following
in MATLAB:
>> x = 1 / 2
x =
0.5000
>>x = 3;
If you look on the right side of MATLAB in the Workspace, you will see at least two
variables defined. You will see x with the value of 3 that you just assigned, and you will
see ans, which stores the result of the last calculation you did. Just keep in mind a few
rules, MATLAB variables always start with a letter, and can have letters, numbers or
underscores in them.
1.2.3 Built-In Functions and Variables
MATLAB has a big library of built-in functions that can do special jobs. For example,
MATLAB has a lot of operators and functions you can use to check relationships
between two numbers. Each of them returns 0 or 1, for false and true, respectively.
a == b Is a equal to b?
a > b Is a greater than b?
a >= b Is a greater than or equal to b?
a < b Is a less than b?
a <= b Is a less than or equal to b?
a ~= b Opposite of a == b.
a && b Returns true if both a and b are true.
a || b Returns true if one or both of a and b are true.
xor(a, b) Returns true if exactly one of a and b are true.
~a Returns the opposite of a.
true Always true.
false Always false.
We can use these as follows:
>> 5 > 3
ans =
1
>> 5 < 3
ans =
0
>> 5 > 3 && 3 < 5
ans =
1
Are you stuck somewhere? There’s always the MATLAB help. Please attempt to solve
your own problems before asking the instructor; that’s how you learn. There are two
main ways to access the help. The first is by pressing F1 on your keyboard. This should
bring up a window like the following in which you can search for in-built functions or
help, or look up the syntax of a function:
The second way is to type in help<function name>. This way, you can quickly look
up the syntax or what a function does without opening the Help Centre. Type in help
inv. You will see something like the following:
You can also jump directly to the help section of a function by typing doc <function
name>.
1.2.6 Vectors/Arrays
Row vectors, also known as 1-D arrays, are defined in MATLAB like this:
>> x = [2 5 4 3 1]
x =
2 5 4 3 1
>> x = [2, 5, 4, 3, 1]
x =
2 5 4 3 1
To access one element of a row vector, you can do this:
>> x(3)
ans =
4
Note that the numbering of an array starts at 1 in MATLAB. Many of the functions we
studied above can be applied to arrays as well. For example,
>> sqrt(x)
ans =
1.4142 2.2361 2.0000 1.7321 1.0000
If arrays are of the same length, addition and subtraction works as usual. You can also
multiply/divide an array by a number (also known as a scalar) with * and /. However, if
you want to multiply two arrays or divide them element by element, you need to use the
operators.* and . /, along with .\, for example:
>> x .* x
ans =
4 25 16 9 1
You can do something similar for exponentiation:
>> x .^ 3
ans =
8 125 64 27 1
A similar thing applies for binary operators. You need to use & instead of && and |
instead of || when working with arrays.
Here are some special commands for generating arrays, along with their explanation.
Note that commands that have a different behavior as compared to scalars are repeated
below for clarity.
>> x(1:3)
ans =
1 2 3
>> x(1:2:5)
ans =
1 3 5
>> x(4:end)
ans =
4 5
>> x(end-2:end)
ans =
3 4 5
1.2.7 Matrices
1.2.8.1 Question 1
Create a vector and a vector .
Compute the following:
a. where .
b. where
c. The element-wise product of and .
d. The dot product of and .
You should submit:
Hint: If you are stuck, use help eig to find out all the different things eig can do.
To start using Simulink, type in simulink at the MATLAB prompt and press enter.
Some time will pass, and you will be presented with a window similar to this one:
Click on the (new model) icon, near the top center of the window. A new window will
pop up in which you can view and edit your model.
In the Simulink Library Browser, click on Sources under Simulink, and drag the Sine
wave generator onto your model. Your model and window will look something like this:
The outwards pointing arrow from the sine-wave generator is an output of the Sine Wave
block. You can take the input of this block and feed it to another block. Double-clicking
the block brings up different properties related to it you can modify.
Drag out a Scope block from Sinks, and connect it to the Sine Wave block by selecting the
Sine Wave block, holding down the Ctrl key, and clicking the Scope block. Then click the
button, and double-click on the scope. Observe the output.
Impulse response
Step Response
In Simulink. You should submit:
Performance /4
Results /3
Critical Analysis /1
Lab Tasks /2
Comments
Signature:
>> syms t s
>> F=(s-5)/(s*(s+2)^2);
>> ilaplace(F)
ans =
-5/4+(7/2*t+5/4)*exp(-2*t)
>> simplify(ans)
ans =
-5/4+7/2*t*exp(-2*t)+5/4*exp(-2*t)
>> pretty(ans)
- 5/4 + 7/2 t exp(-2 t) + 5/4 exp(-2 t)
1.
2.
3.
4.
Find the Inverse Laplace Transform of following transfer functions
1.
2.
3.
4.
Figure 2-1
Click OK to plot all TF's. The step response of the three imported TF will be
displayed in the LTI Viewer window as shown below
Figure 2-2
As noted in the instruction below the plots, use the right button on the mouse with
the cursor placed on the axis of the figure to bring up the menu as show below
Figure 2-3
Note that alternately, you may use the step command in MATLAB to obtain the
same response to step input. For example, let's take the second transfer function
T2. The step response to this TF can be obtained with the following commands:
>> [y2, t2]= step(T2)
Assuming, T2 has been entered previously. The step command as described above
will produce two arrays containing the magnitude and time values of the step
response for T2. You may use the plot command to graphically show the
response. If step command is used without the array forming in the left hand side
of the entry above, a plot of the step command will result from the step command:
>> step (T2)
Question No 3: Build and simulate a model which is able to convert Fahrenheit to degree
Celsius.
Figure 2-4
In this diagram:
v is the horizontal velocity of the car (units of m/s).
F is the force created by the car's engine to propel it forward (units of N).
b is the damping coefficient for the car, which is dependent on wind resistance,
wheel friction, etc. (units of N*s/m) We have assumed the damping force to be
proportional to the car's velocity.
M is the mass of the car (units of kg).
Writing Newton's Second Law for the horizontal direction thus gives:
To model this equation, we begin by inserting a Sum block and a Gain block into a new
model window. The Sum block represents adding together the forces and the Gain block
symbolizes dividing by the mass. Connecting the blocks with a line gives the following in
the model window:
Figure 2-5
Next, we modify these blocks to properly represent our system. The Sum block needs to
add the motor force (F) and subtract the damping force (bv). Thus, we double-click on
this block and change the second "+" in the "List of signs" box into a "-". The Sum Block
Parameters window should now look like:
Figure 2-6
We also modify the Gain block so that it divides by the car's mass. Double-click on the
block and change the Gain to 1/1000. To keep our block diagram organized and easy to
understand, we next add labels to the signals and blocks we have included so far. A block
is labeled by clicking on the text underneath it and editing the description. Draw lines to
the open input terminals of the Sum block and open output terminal of the Gain block and
label the signals and blocks in the model so that they look like:
Figure 2-7
To relate the car's acceleration to its velocity-dependent damping force, we will integrate
the v_dot signal. Place an Integrator block in the model, draw and label the velocity
signal so that the model looks like:
Figure 2-8
To obtain the damping force from the velocity, we need to branch the velocity signal and
multiply it by the damping coefficient (b). The velocity signal is branched by clicking the
right mouse button anywhere on its line (or hold down CTRL and use the left mouse
button) and dragging away a new signal. A Gain block is then used to multiply the
velocity by the damping coefficient. Finally, edit the Gain block's parameters so that its
gain equals the damping coefficient of the system (40 N*sec/m). These additions to the
model should cause it to look like:
Figure 2-9
Note that the block diagram is now set up with input F (engine force) and output v (car
velocity).
Figure 2-10
The Step block must be modified to correctly represent our system. Double-click on it,
and change the Step Time to 0 and the Final Value to 400. The Initial Value can be left as
0, since the F step input starts from 0 at t = 0. The Sample Time should remain 0 so that
the Step block's input is monitored continuously during simulation.
Next, run a simulation of the system. Once the simulation has finished, double-click on
the Scope block to view the velocity response to the step input. Clicking on the
"Autoscale" in the Scope window will produce the following graph:
Figure 2-11
Note that this graph does not appear to show the velocity approaching a steady-state
value, as we would expect for the first-order response to a step input. This result is due to
the settling time of the system being greater than the 10 seconds the simulation was run.
To observe the system reaching steady-state, click Simulation, Parameters in the model
window, and change the Stop Time to 150 seconds. Now, re-run the simulation and note
the difference in the velocity graph:
Figure 2-12
Performance /4
Results /3
Critical Analysis /1
Lab Tasks /2
Comments
Signature:
4. Tf commands also converts zpk form of system to tf form same holds for zpk
command.
5. In Simulink, a block labelled “LTI System” is available in control system toolbox.
Write above commands (tf, zpk) in input space of block to define a linear system.
6. pzmap(sys) plots the pole-zero map of the continuous- or discrete-time LTI model
sys. For SISO systems, pzmap plots the transfer function poles and zeros. The
poles are plotted as x's and the zeros are plotted as o's. pzmap(sys1,sys2,...,sysN)
plots the pole-zero map of several LTI models on a single figure. The LTI models
can have different numbers of inputs and outputs. When invoked with left-hand
arguments,
[p,z] = pzmap(sys)
It returns the system poles and zeros in p and z. No plot is drawn on the screen. You
can use the functions sgrid or zgrid to plot lines of constant damping ratio and natural
frequency in the s- or z- plane.
pzmap(sys)
Figure 3-1
3.2.3 Catalogue of Model Interconnections
Each type of block diagram connection corresponds to a model interconnection command
or arithmetic expression. The following table summarizes the block diagram connections
with the corresponding interconnection command and arithmetic expression:
Figure 3-2
The connect command lets you connect systems in any configuration given in above
figure. To use connect, specify the input and output channel names of the components of
the block diagram. Connect automatically joins ports that have the same name, as shown
in the following figure:
Figure 3-3
Figure 3-4
3.2.4 In-Lab Exercise
We will define above system in Matlab
3.2.4.1 Example 1
We will define above system in Matlab
1) We assume following values for these models
G = zpk( [ ] , [ - 1 , - 1 ] , 1 ) ;
C = pid( 2 , 1 . 3 , 0 . 3 , 0 . 5 ) ;
S = tf( 5 , [ 1 4 ] ) ;
F = tf( 1 , [ 1 1 ] ) ;
The plant G is a zero-pole-gain (zpk) model with a double pole at s =–1. Model
object C is a PID controller. The models F and S are transfer functions
2) Connect the controller and plant models.
H = G*C;
To combine models using the multiplication operator *, enter the models in
reverse order compared to the block diagram. Alternatively, construct H(s) using
the series command.
H = series(C,G);
3) Construct the unfiltered closed-loop response T HS) .
Do not use model arithmetic to construct T algebraically:
T = H/(1+H*S)
This computation duplicates the poles of H, which inflates the model order and
might lead to computational inaccuracy
4) Construct the entire closed-loop system response from r to y.
T_ry = T*F;
T_ry is a Numeric LTI Model representing the aggregate closed-loop system.
T_ry does not keep track of the coefficients of the components G, C, F, and S.
You can operate on T_ry with any Control System Toolbox control design or
analysis commands
3.2.4.2 Example 2
Figure 3-5
Input = ysp , Output = y
1) Create the components of the block diagram: the process model P, the predictor
model Gp, the delay model Dp, the filter F, and the PI controller C. Specify
names for the input and output channels of each model so that connect can
automatically join them to build the block diagram.
s=tf('s');
P = e x p ( - 93.9*s )*5.6 / ( 40.2*s + 1 ) ;
P.InputName = 'u' ;
P.OutputName = ' y ' ;
Gp = 5.6/ ( 40.2*s + 1 ) ;
Gp.InputName = ' u ' ;
Gp.OutputName = ' yp ' ;
Dp = exp ( - 9 3.9*s ) ;
Dp.InputName = ' yp ' ;
Dp.OutputName = ' y1 ' ;
F = 1 / ( 2 0 *s + 1 ) ;
F.InputName = ' dy' ;
F.OutputName = ' dp ' ;
C = pidstd ( 0.574 , 40.1 ) ;
C.InputName = ' e ' ; C.InputName = ' u ' ;
2) Create the summing junctions needed to complete the block diagram
sum1 = sumblk( ' e = ysp - ym ' ) ;
sum2 = sumblk( ' ym = yp + dp ' ) ;
3. Impulse Response, Step Response: View impulse response, step response, impulse
response characteristics and step response characteristics of systems given in
task2. Repeat task 3 using LTIVIEW TOOL.
4. Impulse Response, Step Response: Obtain the unit impulse response for the following
system
Figure 3-6
Figure 3-7
Figure 3-8
3.3.3 Practice Problem
DC Motor Model
J = 3.2284E-6;
b = 3.5077E-6;
K = 0.0274;
R = 4;
Figure 3-9
Performance /4
Results /3
Critical Analysis /1
Lab Tasks /2
Comments
Signature:
Now the derivatives of the state variables are in terms of the state variables, the
inputs, and constants.
Our state vector consists of two variables, x and v so our vector-matrix will be in
the form:
statespace = ss(A, B, C, D)
where A, B, C, and D are from the standard vector-matrix form of a state space model.
e.g.
>>m = 2; b = 5; k = 3;
>>A = [0 1; -k/m –b/m];
>>B = [0;1/m];
>>C = [1 0];
>>D = 0;
>>statespace_ss = ss(A,B,C,D)
4.2.4 Extracting A, B, C and D Matrices from a State Space Model
In order to extract the A, B, C, and D matrices from a previously defined state space
model, use MATLAB's ssdata command.
[A, B, C, D] = ssdata(statespace)
Where, statespace is the name of the state space system. e.g.
>> [A, B, C, D] = ssdata(statespace_ss)
The MATLAB output will be:
A=
-2.5000 -0.3750
4.0000 0
Figure 4-1
Figure 4-2
Observe the step response and comment.
One important fact to note is that although there is only one transfer function that
describes a system, you can have multiple state-space equations that describe a system.
The tf2ss command returns the state-space matrices in control canonical form. Therefore,
if you take a set of state-space equations, convert them into a transfer function, and then
convert it back, you will not have the same set of state-space equations you started with
unless you started with matrices in control canonical form.
4.3.1.2 ZP2SS Command
[A,B,C,D] = zp2ss(z,p,k)
Again, it is important to note that more than one set of state-space matrices can describe a
system. The state-space matrices returned from this command are also in control
canonical form
Figure 4-3
Hint: Use the commands of “series” and “feedback”.
Performance /4
Results /3
Critical Analysis /1
Lab Tasks /2
Comments
Signature:
5.2.1 DC Gain
The DC gain again is the ratio of the magnitude of the steady-state step response to
the magnitude of the step input, and for stable systems it is the value of the transfer
function when . For second order systems
5.2.4 Poles/Zeros
The second order transfer function has two poles at:
For second order under damped systems, the 2% settling time, , rise time, , and
percent overshoot, %OS, are related to the damping and natural frequency as shown
below.
rad/s. The sharpness of the peak depends on the damping in the system, and is
characterized by the quality factor, or Q-Factor, defined below.
Figure 5-1
We can calculate the steady-state error for this system from either the open- or closed-
loop transfer function using the Final Value Theorem. Recall that this theorem can only
be applied if the subject of the limit (sE(s) in this case) has poles with negative real part.
Now, let's plug in the Laplace transforms for some standard inputs and determine
equations to calculate steady-state error from the open-loop transfer function in each
case.
Step Input (R(s) = 1 / s):
Figure 5-2
Therefore, a system can be type 0, type 1, etc. The following tables summarize how
steady-state error varies with system type.
Figure 5-3
5.4.3 Meeting steady-state error requirements
Consider a system of the form shown below.
Figure 5-4
For this example, let G(s) equal the following.
Since this system is type 1, there will be no steady-state error for a step input and there
will be infinite error for a parabolic input. The only input that will yield a finite steady-
state error in this system is a ramp input. We wish to choose K such that the closed-loop
system has a steady-state error of 0.1 in response to a ramp reference. Let's first examine
the ramp input response for a gain of K = 1.
Figure 5-5
Now let's modify the problem a little bit and say that our system has the form shown
below.
Figure 5-6
From our tables, we know that a system of type 2 gives us zero steady-state error for a
ramp input. Therefore, we can get zero steady-state error by simply adding an integrator
(a pole at the origin). Let's view the ramp input response for a step input if we add an
integrator and employ a gain K = 1.
Performance /4
Results /3
Critical Analysis /1
Lab Tasks /2
Comments
Signature:
6.2 Theory
For an LTI system to be stable it has to satisfy the following conditions:
1. It should produce bounded output for bounded input
2. Response should approach towards zero for zero input as t→∞
The Routh Hurwitz stability criterion is a mathematical test that is a necessary and
sufficient condition for the stability of a linear time invariant (LTI) control system. The
Routh test is an efficient recursive algorithm that English mathematician Edward John
Routh proposed in 1876 to determine whether all the roots of the characteristic
polynomial of a linear system have negative real parts. German mathematician Adolf
Hurwitz independently proposed in 1895 to arrange the coefficients of the polynomial
into a square matrix, called the Hurwitz matrix, and showed that the polynomial is stable
if and only if the sequence of determinants of its principal submatrices are all positive.
The two procedures are equivalent, with the Routh test providing a more efficient way to
compute the Hurwitz determinants then computing them directly. A polynomial
satisfying the Routh-Hurwitz criterion is called a Hurwitz polynomial.
The importance of the criterion is that the roots p of the characteristic equation of a linear
system with negative real parts represents solutions ept of the system that are stable
(bounded). Thus the criterion provides a way to determine if the equations of motion of a
linear system have only stable solutions, without solving the system directly. For discrete
systems, the corresponding stability test can be handled by the Schur-Cohn criterion, the
Jury test and the Bistritz test.
6.2.1 Routh Hurwitz criterion for second, third and fourth order
polynomials
In the following, we assume the coefficient of the highest order (e.g. in a second order
polynomial) to be positive. If necessary, this can always be achieved by multiplication of
the polynomial with -1.
A tabular method can be used to determine the stability when the roots of a higher order
characteristic polynomial are difficult to obtain. For an nth-degree polynomial
When completed, the number of sign changes in the first column will be the number of
non-negative poles. Consider a system with a characteristic polynomial
In the first column, there are two sign changes (0.75 → −3, and −3 → 3), thus there are
two non-negative roots where the system is unstable." Sometimes the presence of poles
on the imaginary axis creates a situation of marginal stability. In that case the coefficients
of the "Routh Array" become zero and thus further solution of the polynomial for finding
changes in sign is not possible. Then another approach comes into play. The row of
polynomial which is just above the row containing the zeroes is called "Auxiliary
Polynomial".
In such a case the auxiliary polynomial is A(s) = 2s4+12s2+16 which is again equal to
zero. The next step is to differentiate the above equation which yields the following
polynomial. B(s) = 8s3+24s1. The coefficients of the row containing zero now become
"8" and "24". The process of Routh array is preceded using these values which yield two
points on the imaginary axis. These two points on the imaginary axis are the prime cause
of marginal stability.
And verify your answer by using the built-in command for Routh Hurwitz criterion. For
example
P = [1 6 11 3];
Routh(p)
6.3.1 Routh Stability Criterion (State Space Representation)
The dynamics of a system is represented by the vector matrix differential equation:
Find its characteristics equation and check its stability using Routh Hurwitz criterion and
compare your results with built-in command's results.
Hint: convert states space into polynomial and then analyse its stability using Routh
Hurwitz criterion.
3. The state equations for linear systems are as following, is this a stable system?
Performance /4
Results /3
Critical Analysis /1
Lab Tasks /2
Comments
Signature:
7.2 Theory
In the previous sessions, we discussed absolute stability of a closed-loop feedback control
system using Routh-Hurwitz method. We also studied how the performance of a
feedback system can be described in terms of the location of the roots of the
characteristic equation in the s-plane. We know that the response of a closed-loop
feedback control system can be adjusted to achieve the desired performance by judicious
selection of one or more system parameters. It is, therefore, very useful to determine how
the roots of the characteristic equation move around the s-plane as we change one
parameter.
The Root Locus method, as the name suggests, looks at the loci of the roots as some
parameter of interest, within the system, is varied. Since we already know that the
position of the roots of the characteristic equation strongly influence the step response of
the system, we can find values of the parameter which will position the roots
appropriately, using the method of Root Locus. This method involves root locus diagrams
which the students are expected to have learnt in the theory class. In this lab we will use
Matlab’s powerful computing capability to find and trace root locus of a given system.
Let we have a unity feedback system as shown in figure 6.1. In plotting root loci with
Matlab we need the characteristics equation of this system defined as
Matlab provides us with rlocus command to compute and display root locus of any
system. The syntax of this command is as follows
>> rlocus(num,den)
Here num is array of open-loop numerator coefficients and den is array of open-loop
denominator coefficients. Using this command, the root locus is plotted on the figure
window as shown in figure 6.2. The gain vector K is automatically determined and
contains all the gain values for which the closed-loop poles are to be computed. However,
we can define vector K as per our own will and provide it to rlocus command as
>> rlocus (num,den,K)
If this command is invoked with left-hand arguments, like
[r,k] = rlocus(num,den)
[r,k] = rlocus(num,den,k)
[r,k] = rlocus(sys)
the command window will show the matrix r and gain vector K. The columns of matrix r
are equal to length of K and its rows are den-1, containing the complex root locations.
Each row of the matrix corresponds to a gain from vector K. We can then plot the loci by
using the plot command
>> plot(r,’-’)
In root locus, we examine system’s stability against all possible values of K. No matter
what we pick K to be, the closed-loop system must always have n poles, where n is the
number of poles of open-loop transfer function, G(s)H(s). The root locus must have n
branches; each branch starts at a pole of G(s)H(s) and goes to a zero of G(s)H(s). If
G(s)H(s)has more poles than zeros (as is often the case), m < n, we say that G(s)H(s) has
zeros at infinity. In this case, the limit of G(s)H(s) as → ∞ is zero. The number of zeros
at infinity is n-m and is the number of branches of the root locus that go to infinity
(asymptotes). Since the root locus is actually the locations of all possible closed-loop
poles, from the root locus we can select a gain such that our closed-loop system will
perform the way we want. If any of the selected poles is on the right half plane, the
closed-loop system will be unstable. The poles that are closest to the imaginary axis have
the greatest influence on the closed-loop response, so even though the system has three or
four poles, it may still act like a second or even first order system depending on the
location(s) of the dominant pole(s).
Recall that in the complex plane the damping ratio ζ of a pair of complex-conjugate poles
can be expressed in terms of the angle φ, which is measured from the negative real axis.
In other words, lines of constant damping ratio are radial lines passing through the origin
as shown in figure. For example, a damping ratio of 0.5 requires that the complex poles
lie on the lines drawn through the origin making angles of ± 60o with negative real axis.
If the real part of a pair of complex poles is positive, which means that the system is
unstable, the corresponding ζ is negative. The damping ratio determines the angular
location of the poles, while the distance of the pole from the origin is determined by the
undamped natural frequency . The constant loci are circles.
To draw constant ζ lines and constant circles on the root locus diagram with Matlab,
we use the sgrid command. This command overlays lines of constant damping ratio (ζ = 0
~ 1 with 0.1 increment) and circles of constant on the root locus plot. Run the
following code in Matlab and observe the output.
sgrid
axis ([-2 2 -2 2])
axis ('square')
title ('Constant \zeta Lines and Constant \omega_n Circles')
xlabel ('Real Axis')
ylabel('Imaginary Axis')
If only a particular constant ζ lines and particular constant circles are desired, we may
use the following variant of sgrid command
>> sgrid ([0.5, 0.707],[ 0.5, 1, 1.5])
Enter the following code into Matlab and show that the resulting plot is similar to the one
shown in figure 6.5.
num = [ 0 0 0 1 ]
den = [ 1 4 5 0 ]
axis ('square')
rlocus (num , den)
axis ([- 3 1 -2 2])
sgrid ([0.5 , 0.707],[0.5 , 1.0 , 1.5])
title ('Root Locus Plot with \zeta = 0.5 and 0.707 Lines and \omega_n = 0.5, 1.0 and 1.5
Circles')
If we want to omit either the entire constant ζ lines or entire constant circles, we may
use empty brackets [] in the arguments of the sgrid command. For example, if we want to
overlay only the constant damping ratio lines corresponding to ζ = 0.5 and no constant
circles to the root locus plot shown in figure 6.5, then we may use the command
sgrid (0.5,[])
And if you want to get the value of poles and gain at any particular point in root locus,
you may use the following command.
[k,poles]=rlocfind(num,den)
Click on any point in the root locus, you will get the value of Gain and Poles at that point.
Control systems are designed to perform specific tasks. The requirements imposed on the
control systems are usually spelled out as performance specifications. These
specifications are given before the design process begins and are generally in terms of
transient response requirements (such as the maximum overshoot and settling time in step
response) and of steady-state requirements (such as steady-state error in following a ramp
input).
For routine design problems, the performance specifications (which relate to accuracy,
relative stability, and speed of response) may be given in terms of precise numerical
values or in terms of qualitative statements. In latter case the specifications may have to
be modified during the course of design, since the given specifications may never be
satisfied (because of conflicting requirements) or may lead to a very expensive system.
Generally, the performance specifications should not be more stringent than necessary to
perform the given task.
function of the input frequency. If the steady-state output has a phase lag, then the
network is called a lag network and the corresponding device to remove this phase lag is
called lag compensator. These compensators may be electronic devices, such as
operational amplifiers, or RC networks and amplifiers.
As discussed earlier, the root locus plot of a system may indicate that the desired
performance or stability cannot be achieved just by the adjustment of gain. Then it is
necessary to reshape the root loci to meet the performance specifications.
In designing a control system, if other than a gain adjustment is required, we must modify
the original root loci by inserting a suitable compensator so that a pair of dominant
closed-loop poles can be placed at the desired location. Often, the damping ratio and
undamped natural frequency of a pair of dominant closed loop poles are specified.
A first-order lead compensator can be designed using the root locus. The transfer function
of a lead compensator is given by
When a lead compensator is added to a system, the value of this intersection will be a
larger negative number than it was before. The net number of zeros and poles will be the
same (one zero and one pole are added), but the added pole is a larger negative number
than the added zero. Thus, the result of a lead compensator is that the asymptotes'
intersection is moved further into the left half plane, and the entire root locus will be
shifted to the left. This can increase the region of stability as well as the response speed.
The ball and beam system is one of the most enduringly popular and important laboratory
models for teaching control systems engineering. The ball and beam system is widely
used because it is very simple to understand as a system, and yet the techniques that can
be studies to control it cover many important classical and modern design methods. It has
a very important property – it is open-loop unstable.
Where m is the mass of the ball, g is the gravitational constant, is the beam angle and x
is the position of the ball on the beam.
For small angles, ≈ , so the model becomes,
This simple model of the ball and beam is a good approximation to the true system
dynamics, and is the one normally used in text books and design studies for controller
design. Combining actuator and sensor constants with the gravity constant, we get a
single constant b. This represents the overall gain of the response from control voltage
input to measured output acceleration. The transfer function representation of the above
equation is
Where
Let’s now set the design criteria and system parameter of this problem as,
Settling time less than 3 seconds
Overshoot less than 5%
And the parameters are
= 0.111
= 0.015
= −9.8
= 1.0
= 0.03
= 9.99 × 10-6
Theoretically, design a lead compensator for the above ball and beam system which
meets the given design criteria.
A first-order lag compensator can be designed using the root locus. A lag compensator in
root locus form is given by
where the magnitude of z is greater than the magnitude of p. A lag compensator tends to
shift the root locus to the right, which is undesirable. For this reason, the pole and zero of
a lag compensator must be placed close together (usually near the origin) so they do not
appreciably change the transient response or stability characteristics of the system.
How does the lag controller shift the root locus to the right? The answer is the same as
that to lead compensator. Again recall finding the asymptotes of the root locus that lead
to the zeros at infinity, the equation to determine the intersection of the asymptotes along
the real axis is
When a lag compensator is added to a system, the value of this intersection will be a
smaller negative number than it was before. The net number of zeros and poles will be
the same (one zero and one pole are added), but the added pole is a smaller negative
number than the added zero. Thus, the result of a lag compensator is that the asymptotes'
intersection is moved closer to the right-half plane, and the entire root locus will be
shifted to the right.
It was previously stated that that lag controller should only minimally change the
transient response because of its negative effect. If the phase-lag compensator is not
supposed to change the transient response noticeably, what is it good for? The answer is
that a phase-lag compensator can improve the system's steady-state response. It works in
the following manner. At high frequencies, the lag controller will have unity gain.
At low frequencies, the gain will be z/p which is greater than 1. This factor z/p will
multiply the position, velocity, or acceleration constant (Kp, Kv, or Ka) and the steady
state error will thus decrease by the factor z/p.
We want to design a feed-back controller for the system by using the root locus method
and our design criteria are 5% overshoot and 1 second rise time.
Design a controller in MATLAB which meets the given criteria
For the Lag Compensator Designed in Pre-Lab session, analyze the compensator
on MATLAB.
For this plant a controller must be designed, such that the step response of the closed loop
shows the following properties:
P.O = 16% and tr, 50 =0.6s
Exercise 2
Lasers can be used to drill the hip socket for the appropriate insertion of an artificial hip
joint. The use of the laser surgery requires high accuracy for position and velocity
response. Let us consider the system shown below which uses a DC motor manipulator
for the laser.
The amplifier gain K must be adjusted so that the steady state error for a ramp input, r(t)
= At (where A = 1mm/s), is less than or equal to 0.1 mm, while a stable response is
maintained.
To obtain the steady-state error required and a good response, we select motor with a
field time constant τ1 = 0.1 sec and a motor-plus-load time constant τ2 = 0.2 sec.
a) Find the value of K for which ess is less than 0.1 mm. Expression for ess for ramp
input is
b) Find the range of K for which the system is stable using root locus.
Apply a ramp input and observe the output for t = 0 sec to t = 6 sec
Exercise 3
Consider the following unity feedback system,
Design a Compensator to tailor the transient response as per the given criteria
Percent Overshoot < 10 %
Settling Time < 2 sec
Exercise 4
You would notice that although the transient response of the above system is adapted as
per the given specifications, yet its steady-state error is beyond any tolerance range. Now
design another compensator and cascade it with the previous one to reduce the steady-
state error to less than 5 %.
Note: Exercise 1 and 2 employ both lead compensator and lag compensator on a plant.
Such controller that compensates both lead effect and lag effect is called lead-lag
compensator.
Exercise 5
Design Simulink model of the system given above. Apply both lead and lag compensator
in cascaded fashion to the plant validate the results obtained in exercise 1 and 2.
Performance /4
Results /3
Critical Analysis /1
Lab Tasks /2
Comments
Signature:
8.2 Theory
A proportional–integral–derivative controller (PID controller) is the most commonly used
feedback controller in industrial control systems. A PID controller calculates an error
value as the difference between measured output and a desired set point. The controller
attempts to minimize the error by adjusting the process control inputs.
The popularity of PID controller can be attributed partly to their robust performance in a
wide range of operating conditions and partly to their functional simplicity, which allows
engineers to operate them in a simple and straightforward manner.
The transfer function of the PID controller looks like the following;
Here,
Kp = Proportional Gain
Ki = Integral Gain
Kd = Derivative Gain
First, let’s take a look at how the PID controller works in a closed-loop system using the
schematic shown below.
Figure 8-1
The signal e(t) represents the tracking error, the difference between the reference input
r(t) and the actual output y(t). This error signal will be sent to the PID controller, and the
controller computes both the derivative and integral of this error signal. The signal u(t)
just past the controller is now equal to the proportional gain (Kp) times the magnitude of
the error signal plus the integral gain (Ki) times the integral of the error signal plus the
derivative gain (Kd) times the derivative of the error signal.
This signal, u(t), will now be sent to the plant, and the new output, y(t), will be obtained.
This new output will be sent back to the sensor again to find the new error signal. The
controller takes this new error signal and computes its derivative and it’s integral again.
This process goes on and on.
A proportional controller (Kp) will have the effect of reducing the rise time and will
reduce but never eliminate the steady-state error. An integral control (Ki) will have the
effect of eliminating the steady-state error, but it may make the transient response worse.
A derivative control (Kd) increases the stability of the system, reduces the overshoot, and
improves the transient response. Effects of each controller on closed loop system are
summarized in the table below.
Note that these correlations may not be exactly accurate, because Kp, Ki, and Kd are
dependent on each other. In fact, changing one of these variables can change the effect of
the other two. For this reason, the table should only be used as a reference when you are
determining the values for Ki, Kp and Kd.
When you are designing a PID controller for a given system, follow the steps shown
below to obtain a desired response.
1. Obtain an open-loop response and determine what needs to be improved
2. Add a proportional control to improve the rise time
3. Add a derivative control to improve the overshoot
4. Add an integral control to eliminate the steady-state error
5. Adjust each of Kp, Ki, and Kd until you obtain a desired overall response. You
can always refer to the table shown above to find out which controller controls
what characteristics.
Figure 8-2
Lastly, keep in mind that you do not need to implement all three controllers (proportional,
derivative, and integral) into a single system, if not necessary. For example, if a PI
controller gives a good enough response (like the above example), then you don't need to
implement a derivative controller on the system. Keep the controller as simple as
possible.
As derived in the previous lab, the open-loop transfer functions of the plant for the ball
and beam experiment is:
Figure 8-3
Design a PID Controller to achieve the above criteria
Implement the designed controller in MATLAB and analyze the response of your
system before and after designing the controller.
Exercise 2:
The open-loop transfer function of the DC Motor speed is
Exercise 3:
The open-loop transfer function of the DC Motor position is
Figure 8-4
The open-loop transfer function of the DC Motor speed is
Performance /4
Results /3
Critical Analysis /1
Lab Tasks /2
Comments
Signature:
9.2 Theory
The frequency domain analysis is generally done by using a sinusoidal input signal.
When a sinusoidal input signal is given to a LTI system, the output response consist of
transient and steady state parts, whereas when the transient dies down as t→∞, only the
steady state part remains. The frequency response is the steady state response of a system
to a sinusoidal input signal. The advantage of frequency response analysis is that stability
of a close loop system can be determined from the frequency response of an open loop
system, be it bode plot or nyquist plot.
9.2.1 Frequency Response Representation
The frequency response can be represented in any of the following forms:
1. Bode Plots
2. Nyquist Plots
To plot the frequency response, a vector of frequencies (varying between zero and
infinity) is created and the values of system transfer function at those frequencies are
computed. If G(s) is the open loop transfer function of a system and ω is the frequency
vector, then a graph of G(jω) vs ω is plotted. Since G(jω) is a complex number, frequency
response plots consists of both its magnitude and phase vs ω (i.e Bode plot) or its position
is in the complex plane i.e Nyquist plots.
Bode diagrams are logarithmic plots. It has two graphs: one is a plot of logarithm of
magnitude of a sinusoidal transfer function and the other is a plot of phase angle, both
plotted against the frequency on a logarithmic scale. The basic advantage of logarithmic
representation is that multiplication and division operations of the pole-zero
representation of a transfer function can be replaced by addition and subtraction
operations and greater range of frequencies can be considered.
Octave and Decade: The frequency in logarithmic terms can be represented as
Or
And
The commands used to plot the Bode diagrams of LTI system in MATLAB are
bode (n,d)
bode (sys)
where n and d are polynomials representing numerator and denominator of the given
transfer function, and sys is an LTI model of the system, created with either tf,zpk or ss.
The frequency range and number of points are automatically selected. Another similar
command is
bode (n, d, ω)
where ω specifies the user defined frequency range in rad/sec.
When the output response values are to be stored separately in matrices, then the
following command with left hand arguments and frequency vector is used:
[mag, phase, ω] = bode (n, d, ω)
This command will not generate any plot. However, it returns the frequency response of
the system in matrices containing magnitude, phase angle and frequency ω.
Similarly, the following commands can be used to obtain Bode diagrams:
[mag, phase, ω] = bode (n, d)
[mag, phase, ω] = bode (sys)
The magnitude mag can be converted into decibels with the following command”
magdB = 20*log10(mag)
9.2.4 Logrithmic Frequency Range
The following command is used to specify the logarithmic frequency range:
The following MATLAB commands can be used to plot the BODE diagrams:
n = [10];
d = [1 7 0];
bode (n,d);
grid;
title(‘Bode plot of the function 10/(s2+7s)’);
Obtain the BODE diagrams for the following transfer functions in the specified frequency
range:
N = [200 200];
D = [1 10 100 0];
w = logspace(-2, 3, 6);
bode(n, d, w);
grid;
title(‘Bode plot of the function (200(s+1))/(s(s2+10s+100))’);
9.2.5 Indicating Gain and Phase Angles on the BODE Diagrams
The Bode diagrams obtained using MATLAB programs can alsi be used for marking gain
and phase angle values corresponding to any frequency graphically. This can be done by
clicking the mouse at the desired point on the diagrams. A box indicating values og gain
and frequency or phase and frequency appears in the figure window at the desired point.
Obtain graphically the gain and phase at any desired frequency values on the BODE
diagrams for transfer function .
A = [0 1; -20 -2];
B = [0; 20];
C = [1 0];
D = [0];
Bode (A, B, C, D);
grid;
title(‘Bode plot for transfer function in state space form’);
9.2.7 Polar Plots
The polar plot of a sinusoidal transfer function G(jω) is a plot of the magnitude of G(jω)
versus the phase angle of G(jω) on polar co-ordinates as ω is varied from zero to ∞. Thus,
the polar plot is the locus of vectors as ω is varied from 0 to ∞. If the
n = [0 0 1];
d = [1 1 1];
grid;
nyquist (n, d);
v = [-2 2 -2 2];
axis(v);
title(‘Nyquist plot for G(s) = 1/(s2+s+1)’);
9.2.9 Nyquist Plots for State Space System
If the system is defined in state space, the following commands can be used to obtain the
Nyquist plot:
nyquist (A, B, C, D)
nyquist (A, B, C, D, iu)
nyquist (A, B, C, D, iu, w)
where A, B, C, D are system matrices, iu is an index which specifies which input to use
for the frequency response, and w is the user-supplied frequency vector. This command
produces a series of Nyquist plots, one for each input and output combination of the
following system. The frequency range is automatically determined until and unless it is
defined by w.
Consider the system given by
Draw a Nyquist plot. This system has a single input u and a single output y.
A = [0 1; -20 -4];
B = [0;10];
C = [1 0];
D = [0];
grid;
title(‘Nyquist Plot for T.F. in State Space Form’);
2. Obtain the frequency response data (freq, mag, phase)for the following transfer
function for the specified frequency values
3. Obtain the Bode and Nyquist plot for the given state space form:
Performance /4
Results /3
Critical Analysis /1
Lab Tasks /2
Comments
Signature:
10.2 Apparatus
Digital multimeter
Chronometer
Set of leads
10.3 Figure
Figure 10-1
10.4 Procedure
1. Connect, through leads, bush No. 9 of the WATER PUMP DRIVER to bush No. 9
and bush No. 10 to bush No. 10 (Fig. 8-1(a))
2. Connect bush No. 1 of the Pressure Sensor to bush No. 1 of the relevant interface
and bush No. 2 to bush No. 2 (Fig. 8-1(a))
3. Connect the bush of SET POINT 1 to bush No. 4 of the PID controller and bush
No. 3 of the pressure interface to bush No. 3 of the PID controller (Fig. 8-1(a))
4. Insert one terminal of the digital voltmeter, set in dc, in the bush of SET POINT 1
and the other one in the earth bush
5. Regulate the voltage on SET POINT 1 at 2V
6. Move the terminal of the digital voltmeter from the bush of SET POINT 1 to bush
No. 3 of the PID controller: the voltage value must be equal to 0V
7. Move the terminal of the digital voltmeter from bush X1 of the PID controller: the
voltage value must be equal to the difference between the voltage applied to bush
No. 4 and that applied to bush No. 3, which is 2V
8. Regulate the PROPORTIONAL knob at 25%.
9. Connect bush No. 5 of the PID controller to bush No. 5 and bush No. 8 to bush
No. 8 of the WATER PUMP DRIVER
10. Move the terminal of the digital voltmeter to bush No.3 of the PID controller:
write down in Table 8-1(a) the voltage value.
11. Write down in Table 8-1(a) the voltage value read every 15 seconds untill the
transitory is completed
12. Move the terminal of the digital voltmeter to bush X1 of the PID controller: the
voltage value, to be written down, represents the steady state error.
13. Regulate the PROPORTIONAL knob to 50% and repeat the procedure from step
No. 9.
14. Repeat the procedure with the PROPORTIONAL knob at 75% and 100%.
15. Put OFF the main switch.
16. Draw the curves of the closed loop dynamic response for all the values of the
PROPORTIONAL knob.
10.5 Observations
Table 10-1
10.6 Graph
Figure 10-2
Performance /4
Results /3
Critical Analysis /1
In-Lab Tasks /2
Comments
Signature:
11.2 Apparatus
Digital multimeter
Chronometer
Set of leads
11.3 Figure
Figure 11-1
11.4 Procedure
1. Connect, through leads, bush No. 9 of the WATER PUMP DRIVER to bush No. 9
and bush No. 10 to bush No. 10 (Fig. 8-1(b))
2. Connect bush No. 1 of the Pressure Sensor to bush No. 1 of the relevant interface
and bush No. 2 to bush No. 2 (Fig. 8-1(b))
3. Connect the bush of SET POINT 1 to bush No. 4 of the PID controller and bush
No. 3 of the pressure interface to bush No. 3 of the PID controller (Fig. 8-1(b))
4. Insert one terminal of the digital voltmeter, set in dc, in the bush of SET POINT 1
and the other one in the earth bush
5. Regulate the voltage on SET POINT 1 at 2V
6. Move the terminal of the digital voltmeter from the bush of SET POINT 1 to bush
No. 3 of the PID controller: the voltage value must be equal to 0V
7. Move the terminal of the digital voltmeter from bush X1 of the PID controller: the
voltage value must be equal to the difference between the voltage applied to bush
No. 4 and that applied to bush No. 3, which is 2V
8. Regulate the PROPORTIONAL knob at 25%
9. Connect bush No. 5 of the PID controller to bush No. 5 and bush No. 8 to bush
No. 8 of the WATER PUMP DRIVER
10. Regulate the INTEGRAL knob at 25%
11. Press the RESET button to reset the integrator, that is to discharge the circuit
integrating condensers
12. Connect bush No. 6 of the PID controller to bush No. 6 (Fig. 8-1(b))
13. Move the terminal of the digital voltmeter to bush No.3 of the PID controller:
write down in Table 8-1(b) the voltage value
14. Write down in Table 8-
1(b) the voltage value read every 15 seconds until the
transitory is completed
15. Move the terminal of the digital voltmeter to bush X1 of the PID controller: the
voltage value, to be written down, represents the steady state error
16. Regulate the INTEGRAL knob at 50% leaving the PROPORTIONAL knob at
25% and repeat the procedure from step No. 11
17. Repeat the procedure with the INTEGRAL knob at 75% and 100%
18. To reduce the steady state error, regulate the PROPORTIONAL knob to 50%,
75% and 100% if necessary
19. Put OFF the main switch
20. Draw the curves of the closed loop dynamic response for all the values listed in
the table
21. Analyze the results
11.5 Observations
Table 11-1
11.6 Graph
Figure 11-2
Performance /4
Results /3
Critical Analysis /1
In-Lab Tasks /2
Comments
Signature:
12.2 Apparatus
Digital multimeter
Chronometer
Set of leads
12.3 Figure
Figure 12-1
12.4 Procedure
1. Connect, through leads, bush No. 9 of the WATER PUMP DRIVER to bush No. 9
and bush No. 10 to bush No. 10 (Fig. 9-1)
2. Connect bush No. 1 of the Pressure Sensor to bush No. 1 of the relevant interface
and bush No. 2 to bush No. 2 (Fig. 9-1)
3. Connect the bush of SET POINT 1 to bush No. 4 of the PID controller and bush
No. 3 of the pressure interface to bush No. 3 of the PID controller (Fig.9-1)
4. Insert one terminal of the digital voltmeter, set in dc, in the bush of SET POINT 1
and the other one in the earth bush
5. Regulate the voltage on SET POINT 1 at 2V
6. Move the terminal of the digital voltmeter from the bush of SET POINT 1 to bush
No. 3 of the PID controller: the voltage value must be equal to 0V
7. Move the terminal of the digital voltmeter from bush X1 of the PID controller: the
voltage value must be equal to the difference between the voltage applied to bush
No. 4 and that applied to bush No. 3, which is 2V
8. Regulate the PROPORTIONAL knob at 25%
9. Connect bush No. 5 of the PID controller to bush No. 5 and bush No. 8 to bush
No. 8 of the WATER PUMP DRIVER
10. Regulate the DERIVATIVE knob at 25%
11. Connect bush No. 7 of the PID controller to bush No. 7 (Fig. 9-1)
12. Move the terminal of the digital voltmeter to bush No.3 of the PID controller:
write down in Table 9-1 the voltage value
13. Write down in Table 9-
1 the voltage value read every 15 seconds until the transitory is completed
14. Move the terminal of the digital voltmeter to bush X1 of the PID controller: the
voltage value, to be written down, represents the steady state error
15. Regulate the DERIVATIVE knob at 50% leaving the PROPORTIONAL knob at
25% and repeat the procedure from step No. 11
16. Repeat the procedure with the DERIVATIVE knob at 75% and 100%
17. To reduce the steady state error, regulate the PROPORTIONAL knob to 50%,
75% and 100% if necessary
18. Put OFF the main switch
19. Draw the curves of the closed loop dynamic response for all the values listed in
the table
20. Analyze the results
12.5 Observations
Table 12-1
12.6 Graph
Figure 12-2
Performance /4
Results /3
Critical Analysis /1
In-Lab Tasks /2
Comments
Signature:
13.2 Apparatus
Digital multimeter
Chronometer
Set of leads
13.3 Procedure
1. Determine the value of Kp for which oscillations start through the analysis of
the
curves or repeating the experiment with intermediate values of Kp following
the procedure listed in Experiment 8(a):
The value of the position of Kp, for which
oscillations start, must be reduced by 0.6 times.
2. Once determined the value of Kp and analyzed the curves of Ki drawn during ex
periment 8(b), establish the optimum value of Ki repeating, if necessary, the proced
ure listed in the same Experiment for all the intermediate values.
3. Exclude the integral action without modifying the value chosen for Ki.
4. Determine the optimum value of Kd through the analysis of the curves drawn du
ring Experiment
9 or repeating, if necessary, the procedure listed in the same Experiment.
5. Utilize at the same time the proportional, integral and derivative actions and perf
orm the experiments of Experiment 8(a), 8(b) and 9 (Fig. 10-1)
6. Write down in Table 10-
1 the voltage value read every 15 seconds until the transitory is
completed after its conversion in centimeters (1V = 0.2bar).
7. Draw the curves of the closed loop dynamic response (Fig. 13-2)
13.4 Figure
Figure 13-1
13.5 Observations
Table 13-1
13.6 Graph
Figure 13-2
Performance /4
Results /3
Critical Analysis /1
In-Lab Tasks /2
Comments
Signature: