Lab 06 MATLAB MEEN201101082
Lab 06 MATLAB MEEN201101082
Lab 06
Objective:
To obtain and analyze the transient responses of 1st order / 2nd order control systems.
We call the parameter “a” the exponential frequency. Because the derivative of e-at is -a at t = 0.
So the time constant is considered as a transient response specification for a first-order control
system.
Settling Time of a First Order Control System
The settling time is defined as the time for the response to reach and stay within 2% of its final
value. We can limit the percentage up to 5% of its final value. Both percentages are a
consideration. The equation of settling time is given by Ts = 4/a.
By using these three transient response specifications, we can easily compute the step response of
a given system that’s why this qualitative technique is useful for order systems equations.
1|Page
M Waleed MEEN201101027
Rise time
Rise time is defined as the time for the waveform to go from 0.1 to 0.9 of its final value.
2.2 𝑇𝑟 =
System dc gain
DC gain is the ratio of the steady-state output of a system to its constant input, i.e., steady-state of
the unit step response. The DC gain is the ratio between the steady-state input and the steady-
state derivative of the output can be obtained via differentiation of the obtained output.
2|Page
M Waleed MEEN201101027
3|Page
M Waleed MEEN201101027
second-order system can display characteristics much like a first-order system, or, depending on
component values, display damped or pure oscillations for its transient response.
Natural frequency
The natural frequency of a second-order system is the frequency of oscillation of the system
without damping. Consider the general second order system.
𝑏
𝐺(𝑠) =
𝑠2 + 𝑎𝑠 + 𝑏
𝜔𝑛 = √𝑏
Damping Ratio
A viable definition for this quantity is one that compares the exponential decay frequency of the
envelope to the natural frequency. This ratio is constant regardless of the time scale of the
response. Also, the reciprocal, which is proportional to the ratio of the natural period to the
exponential time constant, remains the same regardless of the time base.
a
Exponential decay frequency
2
𝜁= =
Exponential decay frequency 𝜔𝑛
Important formulas
Some important formulas for time response of 2nd order system are written below,
𝜋
𝑇𝑝 = 𝜔𝑛√1 − 𝜁2
4|Page
M Waleed MEEN201101027
𝑇𝑠
𝜔𝑛𝜁
𝜁𝜋
−
𝑀𝑃𝑇 = 1 + 𝛽
𝜁𝜋
−
% 𝑜𝑣𝑒𝑟𝑠ℎ𝑜𝑜𝑡 = 𝑒 𝛽
∗ 100 Our
general second-order transfer function finally looks like this:
Code:
5|Page
M Waleed MEEN201101027
6|Page
M Waleed MEEN201101027
Impulse response of a second order system with varying value of damping coefficient (ζ)
Exercise
The engine, body, and tires of a racing vehicle affect the acceleration and speed attainable. The
speed control of the car is represented by the model shown in the following figure 6.
7|Page
M Waleed MEEN201101027
8|Page
M Waleed MEEN201101027
9|Page
M Waleed MEEN201101027
Exercise:
For year, Amtrak ahs struggled to attract passengers on its routs in the Midwest, using
technology developed decades ago. During the same time, foreign railroads were developing new
passenger rai systems that could profitably compete with air travel. Two of these systems, the
10 | P a g e
M Waleed MEEN201101027
French TGV and the Japanese Shinkansen, each speeds of 160 mph. The tranrapid-06, a U.S.
experimental magnetic levitation train is shown in the following figure. The use of magnetic
levitation and electro-magnetic propulsion to provide contact less vehicle movement makes the
Transrapid-06 technology radically different from the existing. The levitation control is
represented by Fig(6.4).
➢ Find the step response for K=40, and also calculate the percent over shoot.
➢ Select or analyze the value of K such that the over shoot is not more than 5% for the
step input
11 | P a g e
M Waleed MEEN201101027
Exercise:
G(s) =(2(s+8))/(s(s+4))
(a) Determine the closed-loop transfer function T(s)=Y(s)/R(s) using manually, and using the
MATLAB.
(b) Find the time response y(t) for the unit step input.
(c) Determine the overshoot of the response.
(d) Using the final-value theorem, and using the response plot find the steady-state values of
y(t) (e) Find the system settling time manually and from the plot.
12 | P a g e
M Waleed MEEN201101027
13 | P a g e