Professional Documents
Culture Documents
OBJECTIVES:
Building up on the Transfer Function representation in Laplace Domain.
Transfer Function representation and transient analysis of 2nd Order Systems.
Transfer Function representation and transient analysis of higher order systems.
Obtaining system response to an arbitrary input
SUGGESTED READING:
Chapter 4: “Transfer Function approach to Modeling Physical Systems”, from book
“System Dynamics”, by Ogata.
http://www.electrical4u.com/transfer-function/
https://www.facstaff.bucknell.edu/mastascu/eControlHTML/SysDyn/SysDyn2.html
Please read through all the suggested reading before you come to lab.
SOFTWARE REQUIRED
MATLAB
---------------------------------------------------------------------------------------------------------------------
Review:
the transfer function of a control system is defined as the ratio of the Laplace
transform of the output variable to Laplace transform of the input variable
assuming all initial conditions to be zero
Solution:
The equation of motion for the system in fig.1(b) is:
m ÿ+ b ( ẏ−u̇ ) + k ( y −u )=0
or
m ÿ+ b ẏ+ ky=b u̇+ ku
Taking the Laplace transform of this last equation, assuming zero initial
conditions, we obtain
( m s 2+ bs+ k ) Y ( s ) =( bs+ k ) U (s)
Question 1.1:
What will happen to the response of the system if the damping (b) is increased 10
times? What about 100 times increase?
TASK 2:
Plot the unit-step response curves of the two systems defined by the transfer
functions
X ( s) 25
= 2
U ( s ) s +5 s +25
and
Y (s ) 5 s+ 25
=
U ( s) s2 +5 s+25
In one diagram.
Solution:
Code and plot:
produces the response of the system to the input u. Here, u is the input and t
represents the times at which responses to u are to be computed. (The response
time span and the time increment are stated in t; an example of how t is specified is
t = 0: 0.01: 10).
Note also that, by using ‘lsim’ commands, we are able to obtain the response of the
system to ramp inputs, acceleration inputs, and any other time functions that we
can generate with MATLAB.
Assuming that m = 100 kg, obtain the displacement x(t) of the cart for 0 ≤t ≤30
with MATLAB. The cart is at rest for t < 0, and the displacement x is measured
from the rest position.
Solution:
The equation of motion for the system is
m ẍ =u
u = [u1 u2];
Code:
t = 0:0.02:30;
ul = 0.5*[0:0.02:10];
u2 = 0*[10.02:0.02:30];
u = [ul u2];
nurn = [1]; den = [100 0 0];
sys = tf(nurn,den);
x = lsim(sys,u,t);
subplot(211 ),plot(t,x)
grid
ylabel('Output X(t)')
subplot (212), plot(t,u)
v = [0 30 -1 6]; axis (v)
grid
xlabel('t (sec)')
ylabel('lnput Force u(t) newton')
Figure 3 shows the output and input versus time plot of the system. This input is
also known as ‘ramp input’.
Output X(t) 4
0
0 5 10 15 20 25 30
lnput Force u(t) newton
0 5 10 15 20 25 30
t (sec)
Fig.3: Response curve x(t) versus t and input curve u(t) versus t
TASK 3:
Consider the system shown in Figure below. The system is at rest for t < 0. Assume that the
displacement x is the output of the system and is measured from the equilibrium position. At t =
0, the cart is given initial conditions x ( 0 )=0 and ẋ ( 0 )=0.5 m/s. Assume that m = 20 kg, b1 = 50
N-s/m, b2 = 70 N-s/m, k1 = 300 N/m, and k2 = 400 N/m.
Solution: