EE 340: Control Systems: Lab 9 Performance of The Second Order Systems
EE 340: Control Systems: Lab 9 Performance of The Second Order Systems
Lab 9
Performance of the second order systems
Instructor’s signature
Page 1
Fall2020 Control System Lab
Document history
Version no. Date Modified Author
1 Jan, 2021 Awais Yaqoob
Page 2
Fall2020 Control System Lab
Introduction
The first step in analyzing a control system was to derive a mathematical model of the system.
Once such a model is obtained, various methods are available for the analysis of system
performance. Usually, input signal to control system is not known beforehand and are random
in nature. In analysis and designing of control systems, we need to have some basis for
performance comparison. This basis may be set up by specifying particular test input signals
and by comparing the responses of various systems to these input signals. The commonly used
test input signals are step functions, ramp functions, acceleration functions, impulse functions,
sinusoidal functions, and white noise. In this lab, we will use step function, Impulse function
and ramp functions only to analyze the transient and steady state response of system.
If num and den (the numerator and denominator of the closed-loop transfer function) are
known, commands such as
step(num,den), step(num,den,t)
will generate plots of unit-step responses.
For a control system defined in a state-space form, where state matrix A, control matrix B,
output matrix C, and direct transmission matrix D of state-space equations are known, the
following commands will generate plots of unit-step responses.
step(A,B,C,D), step(A,B,C,D,t)
And the unit impulse response can be found using following commands.
impulse(num,den) or impulse(A,B,C,D)
There is no ramp command in MATLAB. Therefore, we need to use the step command or the
lsim command to obtain the ramp response.
Let us see another example if 2nd order system’s transfer function is given in standard form.
Let us consider a system defined by following transfer function.
𝐶(𝑠) 1
= 2
𝑅(𝑠) 𝑠 + 2𝜁𝑠 + 1
We will plot unit-step response curves when ζ assumes the following values.
ζ=0, 0.2, 0.4, 0.6. 0.8, 1.0
Page 3
Fall2020 Control System Lab
Lab tasks:
In the following, system 1 is proportional servo position control system, system 2 is PD servo
positional control system and system 3 is with velocity feedback servo system.
Exercise 1
Find the closed loop transfer function of these systems. (recall lab 2)
The closed loop transfer function of all the three system is found below:
Page 4
Fall2020 Control System Lab
System I:
System II:
Page 5
Fall2020 Control System Lab
System III:
Page 6
Fall2020 Control System Lab
Exercise 2
Write a MATLAB code to plot their unit step response and comment on it.
In this we have observed the unit step response of the three systems so that we can compare
them and check which is the best system. We can compare their rise time, overshoot and an
compare the behavior of all the three type of systems.
System I:
Page 7
Fall2020 Control System Lab
System II:
System III:
Page 8
Fall2020 Control System Lab
Exercise 3
Write a MATLAB code to plot their unit impulse response and comment on it.
In this we have observed the impulse response of the three different systems to study their
behavior. We used impulse command in MATLAB to get the responses so that we can
compare them and check their responses.
System I:
System II:
Page 9
Fall2020 Control System Lab
System III:
Exercise 4
Write a MATLAB code to plot their unit ramp response and comment on it.
In this we have observed the ramp response of the three different systems to study their
behavior. We used step and then plot command in MATLAB to get the responses so that we
can compare them and check their responses.
System I:
P a g e 10
Fall2020 Control System Lab
System II:
System III:
P a g e 11
Fall2020 Control System Lab
Exercise 5
Which system is best with respect to the speed of response and maximum overshoot in
the step response?
In this we observe the maximum overshoot and rise time. We concluded that the system three
has less overshoot but its rise time is more than the other systems. But by observing the ramp
and impulse response, it is evident that system 3 is the best.
Exercise 6
36
𝐺(𝑠) =
𝑠 2 + 2𝑠 + 36
Write a MATLAB code to obtain unit step response of above system.
P a g e 12
Fall2020 Control System Lab
Exercise 7
Find the rise time, peak time, maximum overshoot, and settling time in the unit-step response
of above system.
Rise Time:
Rise time of system is 0.29435s
Peak Time:
Peak time of system is 0.553s
P a g e 13
Fall2020 Control System Lab
Maximum Overshoot:
Settling Time:
P a g e 14
Fall2020 Control System Lab
Exercise 8
Consider the closed-loop system defined by
𝐶(𝑠) 2𝜁𝑠 + 1
= 2
𝑅(𝑠) 𝑠 + 2𝜁𝑠 + 1
where ζ=0.2, 0.4, 0.6, 0.8, and 1.0. Using MATLAB, plot a two-dimensional diagram of unit-
step and unit-impulse responses curves (ζ is called zeta).
Unit-Step Response:
Unit-Impulse Response:
P a g e 15
Fall2020 Control System Lab
Exercise 9
Consider a system using following state space equations.
Unit-Step Response:
Unit-Impulse Response:
P a g e 16
Fall2020 Control System Lab
Unit-Ramp Response:
P a g e 17
Fall2020 Control System Lab
Provides meaningful
interpretation of
Interpretation of
results. Provides Provides some
results is not clearly
scientific reasoning interpretation of
explained. No
and draws results. Includes some
conclusions are made
appropriate sort of conclusions.
based on the results.
Discussion conclusions based on
(CLO1) data.
Total
P a g e 18