Professional Documents
Culture Documents
Linear LAB Report - 1
Linear LAB Report - 1
EACT 533
Department of Electrical
Automation
And Control
Engineering
SUBMIT TO
Dr. Saravana Kumar Gurusamy,
Associate Professor
SUBMITED BY
GAROMA EDOSA BONA
ID No- MRT /560/13
1
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
EXPERIMENT – 1
Obtain Pole, zero, gain values of the transfer functions given below. Also verify your result
theoretically
Solution-(1.1)
MATLAB Code
>> num = [1]
den=[1 1 4]
g = tf (num,den)
[z,p,k] = tf2zp(num,den)
pzmap(g)
Output:
num =
1
den =
1 1 4
g=
1
-----------
s^2 + s + 4
Continuous-time transfer function.
z=
0×1 empty double column vector
p=
-0.5000 + 1.9365i
-0.5000 - 1.9365i
k=
1
2
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-1
Solution-(1.2)
MATLAB Code
>> num = [5]
den=[1 0 9]
g = tf (num,den)
[z,p,k] = tf2zp(num,den)
pzmap(g)
num =
5
den =
1 0 9
g=
5
-------
s^2 + 9
Continuous-time transfer function.
z=
0×1 empty double column vector
p=
0.0000 + 3.0000i
0.0000 - 3.0000i
k=
5
3
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-2
Solution (1.3)
MATLAB Code
>> num = [1]
den= conv([1 3 5], [1 8 15])
g = tf (num,den)
[z,p,k] = tf2zp(num,den)
pzmap(g)
num =
1
den =
1 11 44 85 75
g=
1
---------------------------------
s^4 + 11 s^3 + 44 s^2 + 85 s + 75
Continuous-time transfer function.
z=
0×1 empty double column vector
p=
-5.0000 + 0.0000i
-3.0000 + 0.0000i
-1.5000 + 1.6583i
-1.5000 - 1.6583i
k=
1
4
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-3
Solution 1.4
MATLAB Code
p= [-1+i -1-i -4]
z= [-2 -5]
k=1
[num,den]= zp2tf(z',p',k)
g=tf(num,den)
pzmap(g)
p=
-1.0000 + 1.0000i -1.0000 - 1.0000i -4.0000 + 0.0000i
z=
-2 -5
k=
1
num =
0 1 7 10
den =
1 6 10 8
g=
s^2 + 7 s + 10
----------------------
s^3 + 6 s^2 + 10 s + 8
Continuous-time transfer function.
5
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-4
Solution 1.5
MATLAB Code
>> p= [-1+4i -1-4i -5]
z= [-8 -5]
k=0.75
[num,den]= zp2tf(z',p',k)
g=tf(num,den)
pzmap(g)
Output
p=
-1.0000 + 4.0000i -1.0000 - 4.0000i -5.0000 + 0.0000i
z=
-8 -5
k=
0.7500
num =
0 0.7500 9.7500 30.0000
den =
1 7 27 85
g=
0.75 s^2 + 9.75 s + 30
-----------------------
s^3 + 7 s^2 + 27 s + 85
6
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-5
DISCUSSION:
1. What do you mean by poles?
Poles are the value(s) for z where the denominator of the transfer function equals zero. The
complex frequencies that make the overall gain of the filter transfer function infinite.
EXPERIMENT - 2
Obtain step and impulse response of the following systems with unity feedback connection.
Also verify your result theoretically
Solution 2.1
Step response
MATLAB Code
>> num = [1];
den = [1 11]
g = tf (num,den)
t = feedback(g,1)
step(t,'r')
Output
den =
1 11
g=
1
------
s + 11
Continuous-time transfer function.
8
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-6
Impulse response
>> num = [1];
den = [1 11]
g = tf (num,den)
t = feedback(g,1)
impulse(t,'r')
Output
MATLAB Code
den =
1 11
g=
1
------
s + 11
9
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig -7
Solution 2.2
Step response
MATLAB Code
>> num = [1];
den = [1 2]
g = tf (num,den)
t = feedback(g,1)
step(t,'r')
Output
den =
1 2
g=
1
-----
s+2
Continuous-time transfer function.
t=
1
-----
s+3
Continuous-time transfer function.
10
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-8
Impulse response
MATLAB Code
>> num = [1];
den = [1 2]
g = tf (num,den)
t = feedback(g,1)
impulse(t,'r')
den =
1 2
g=
1
-----
s+2
Continuous-time transfer function.
t=
1
-----
s+3
Continuous-time transfer function.
11
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-9
DISCUSSION:
In RL circuit voltage across the inductor decreases with time while in the RC circuit voltage across the
capacitor increase with time. Those current in RL circuit has the form as voltage RC circuit. The both rise
their final value exponentially according to
𝑡𝑅
1 − 𝑒− 𝐿
EXPERIMENT - 3
Obtain step and impulse response of the following systems with unity feedback connection.
Also verify your result theoretically
Solution 3.1
MATLAB Code
>> num = [1 9];
den = conv([1 4], [1 8])
g = tf (num,den)
t = feedback(g,1)
impulse(t,'r')
12
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Output
den =
1 12 32
g=
19
---------------
s^2 + 12 s + 32
Continuous-time transfer function.
t=
19
---------------
s^2 + 12 s + 51
Continuous-time transfer function.
Fig-10
Solution 3.2
MATLAB Code
>> num = [1];
den = [1 3 4]
g = tf (num,den)
t = feedback(g,1)
impulse(t,'r')
Output
den =
1 3 4
g=
1
-------------
s^2 + 3 s + 4
Continuous-time transfer function.
t=
1
-------------
13
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
s^2 + 3 s + 5
Fig-11
DISCUSSION:
1. What do you mean by rise time? Derive its expression for a unity feedback 2nd order control system
Rise time (tr) The rise time is the time required for the response to rise from 10% to 90%, 5%
to 95%, or 0% to 100% of its final value. For under-damped second-order systems, the 0% to
100% rise time is normally used. For over-damped systems, the 10% to 90% rise time is
commonly used.
Rise time(tr)The rise time is the time required for the response to rise from 10% to 90%, 5%
to 95% ,or 0% to 100% of its final value. For under-damped second-order systems, the 0% to
100% rise time is normally used. For over-damped systems, the 10% to 90% rise time is
commonly used.
The expression of under damped second order control system with unit step in put function,
Again , as per definition , the magnitude of out put signal at rise time is 1.That is C(t)= 1, hence
14
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
EXPERIMENT – 4
Obtain bode diagram of the following transfer function. Also verify your result theoretically.
Solution 4
MATLAB Code
>> num = [0.08 0.16]
g = tf(num,den);
bode(g)
margin(g)
Output
num =
0.0800 0.1600
den =
15
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-12
DISCUSSION:
the vertical distance between the phase curve (on the Bode phase plot) and the
x-axis at the frequency where the Bode magnitude plot = 0 dB. This point is
known as the gain crossover frequency .
EXPERIMENT – 5
Obtain Root Locus Plot of the following transfer function. Also verify your result theoretically.
Solution 5
MATLAB Code
>> num = [1 6]
den = conv([1 3],[1 6])
g = tf(num,den);
rlocus(g)
Output
num =
17
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
1 6
den =
1 9 18
Fig-13
DISCUSSION:
1. What is relative stability? How can you measure relative stability using Root locus?
Relative stability it is measure of how fast the transient dies out in the system . Relative
stability is related to settling time. A system having pole away from the left haif of
imaginary axis is considered to be relativily more stable compaired to a system having
poles closed to imaginary axis.
2. What do you mean by break away point?
A break away point is the point on a real axis segment of the root locus between to
real poles where the to real closed loop poles meet and diverge to become complex
conjugates.
3. What is asymptotic line?
An asymptotic line is a kind of boundary between positive and nagetive curvature on
a surface .
18
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
EXPERIMENT – 6
Obtain Nyquist Plot of the following transfer function. Also verify your result theoretically.
Solution-6
MATLAB Code
>> num = [1 8]
den =conv([1 3 0],[0 1 6])
g = tf(num,den)
nyquist(g)
Output
num =
1 8
den =
0 1 9 18 0
g=
s+8
------------------
s^3 + 9 s^2 + 18 s
19
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-14
DISCUSSION:
1. What is nyquist contour?
The nyquist contour is a closed contour in the S – plane which completely in closes the
entire right hand haif of S- plane. In order to in close the complete RHS of S- plane a large
semi circle path drawn with diameter along jω axis and center at the origin. The radius of
the semi circle is treated as nyquist.
2. What is polar plot?
Polar plot is a plot which can be drawn between magnitude and phase .
The polar plot is a plot whitch can drawn between the magnitude the phase angle of G (jω)
H(jω) by varying ω from 0 to ∞.
3. How it differs from Nyquist plot?
Polar plot is a plot of magnitude versus phase angle in complex plane . (i.e locus of magnitude
traced by the phase by varying frequency from 0 to ∞ ).
EXPERIMENT – 7
7.1 Consider a unity feedback system with forward path transfer function
Solution-7
MATLAB Code
num=1;
den=[1 1.6 0];
g1=tf (num,den)
t1=feedback(g1,1)
step(t1,'g')
hold on
num1=10;
den1=[1 1.6 0];
g2=tf (num1,den1)
t2=feedback(g2,1)
step(t2,'m')
hold on
Kp=500;
Kd=50;
numc=[Kd Kp];
numo=conv(numc,num)
deno=den
20
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
g3=tf(numo,deno)
t3=feedback(g3,1)
step(t3,'b')
hold on
Kp=500;
Kd=10;
numc=[Kd Kp];
numo=conv(numc,num)
deno=den
g3=tf(numo,deno)
t4=feedback(g3,1)
step(t4,'y')
hold on
Kp=500;
Kd=.05;
numc=[Kd Kp];
numo=conv(numc,num)
deno=den
g3=tf(numo,deno)
t5=feedback(g3,1)
step(t5,'r')
hold on
Output
g1 =
1
-----------
s^2 + 1.6 s
t1 =
1
---------------
s^2 + 1.6 s + 1
g2 =
10
-----------
s^2 + 1.6 s
t2 =
10
----------------
21
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
s^2 + 1.6 s + 10
numo =
50 500
deno =
1.0000 1.6000 0
g3 =
50 s + 500
-----------
s^2 + 1.6 s
t3 =
50 s + 500
------------------
s^2 + 51.6 s + 500
numo =
10 500
deno =
1.0000 1.6000 0
g3 =
10 s + 500
-----------
s^2 + 1.6 s
t4 =
10 s + 500
------------------
s^2 + 11.6 s + 500
numo =
0.0500 500.0000
deno =
1.0000 1.6000 0
g3 =
0.05 s + 500
------------
s^2 + 1.6 s
22
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
t5 =
0.05 s + 500
------------------
s^2 + 1.65 s + 500
Fig-15
7.2 Consider a unity feedback system with forward path transfer function
Solution-7.2
MATLAB Code
>> num=1;
den=[1 1.6 0];
g1=tf (num,den)
t1=feedback(g1,1)
step(t1,'g')
hold on
num1=10;
den1=[1 1.6 0];
g2=tf (num1,den1)
t2=feedback(g2,1)
step(t2,'m')
hold on
23
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Kp=500;
Ki = 1
numc=[Kp Ki];
denc= [1 0]
numo=conv(numc,num)
deno=conv(den,denc)
g3=tf(numo,deno)
t3=feedback(g3,1)
step(t3,'b')
hold on
Kp=500;
Ki = 100
numc=[Kp Ki];
denc= [1 0]
numo=conv(numc,num)
deno=conv(den,denc)
g3=tf(numo,deno)
t4=feedback(g3,1)
step(t4,'r')
hold on
Kp=500;
Ki = 500
numc=[Kp Ki];
denc= [1 0]
numo=conv(numc,num)
deno=conv(den,denc)
g3=tf(numo,deno)
t5=feedback(g3,1)
step(t5,'g')
hold on
Output
g1 =
1
-----------
s^2 + 1.6 s
t1 =
1
---------------
s^2 + 1.6 s + 1
g2 =
10
24
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
-----------
s^2 + 1.6 s
Continuous-time transfer function.
t2 =
10
----------------
s^2 + 1.6 s + 10
Ki =
1
denc =
1 0
numo =
500 1
deno =
1.0000 1.6000 0 0
g3 =
500 s + 1
-------------
s^3 + 1.6 s^2
t3 =
500 s + 1
-------------------------
s^3 + 1.6 s^2 + 500 s + 1
Ki =
100
denc =
1 0
numo =
500 100
deno =
1.0000 1.6000 0 0
g3 =
500 s + 100
-------------
s^3 + 1.6 s^2
25
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
t4 =
500 s + 100
---------------------------
s^3 + 1.6 s^2 + 500 s + 100
Ki =
500
denc =
1 0
numo =
500 500
deno =
1.0000 1.6000 0 0
g3 =
500 s + 500
-------------
s^3 + 1.6 s^2
t5 =
500 s + 500
---------------------------
s^3 + 1.6 s^2 + 500 s + 500
26
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
Fig-16
7.3 Consider a unity feedback system with forward path transfer function
Solution-8
MATLAB Code
>> num=1;
den=[1 1.6 0];
g1=tf (num,den)
t1=feedback(g1,1)
step(t1,'g')
hold on
num1=10;
den1=[1 1.6 0];
g2=tf (num1,den1)
t2=feedback(g2,1)
step(t2,'m')
hold on
Kp=500;
Ki=1;
Kd=10;
numc=[Kd Ki Kp];
numo=conv(numc,num)
deno=den
g3=tf(numo,deno)
t3=feedback(g3,1)
27
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
step(t3,'b')
hold on
Kp=500;
Ki=1;
Kd=5;
numc=[Kd Ki Kp];
numo=conv(numc,num)
deno=den
g3=tf(numo,deno)
t4=feedback(g3,1)
step(t4,'y')
hold on
Kp=500;
Ki=1;
Kd=.01;
numc=[Kd Ki Kp];
numo=conv(numc,num)
deno=den
g3=tf(numo,deno)
t5=feedback(g3,1)
step(t5,'r')
hold on
Output
g1 =
1
-----------
s^2 + 1.6 s
t1 =
1
---------------
s^2 + 1.6 s + 1
g2 =
10
-----------
s^2 + 1.6 s
t2 =
28
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
10
----------------
s^2 + 1.6 s + 10
numo =
10 1 500
deno =
1.0000 1.6000 0
g3 =
10 s^2 + s + 500
----------------
s^2 + 1.6 s
t3 =
10 s^2 + s + 500
--------------------
11 s^2 + 2.6 s + 500
numo =
5 1 500
deno =
1.0000 1.6000 0
g3 =
5 s^2 + s + 500
---------------
s^2 + 1.6 s
t4 =
5 s^2 + s + 500
-------------------
6 s^2 + 2.6 s + 500
numo =
0.0100 1.0000 500.0000
deno =
29
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
1.0000 1.6000 0
g3 =
0.01 s^2 + s + 500
------------------
s^2 + 1.6 s
t5 =
0.01 s^2 + s + 500
----------------------
1.01 s^2 + 2.6 s + 500
Fig-17
30
Submitted by: - Garoma Edosa Bona
LINEAR CONTROL SYSTEM LAB MANUAL
EACT 533
31
Submitted by: - Garoma Edosa Bona