Lab # 7 Control System
Lab # 7 Control System
Abbottabad Campus
Department of Electrical (Power) Engineering
Lab Assignment: 07
Class/Section: EPE-6C
1. Overdamped response: Two real but distinct poles, -p1 and -p2.
2. Underdamped response:Two complex poles, -p1 ± jω
3. Undamped response: Two poles in imaginary axis, ± jω
4. Critically damped response:Two real and repeated poles, -p1 and -p1.
Figure 0: Response of Second System on Changing Poles Location
Task 1: Identify the type of system with the help of pole’s location and draw step response
at the end of this lab.
400
a) G ( s )= 2
s + 12 s+ 400
625
b) G ( s )= 2
s +625
Solution :
400
a) Code for system G ( s )= 2
s + 12 s+ 400
s=tf('s');
sys=400/((s^2) + 12*s +400)
step(sys)
grid on;
figure;
pzmap(sys)
axis([-7 1 -25 25])
grid on
b=400;
a=[1 12 400];
[z,p,k] = tf2zp(b,a)
625
b) Code for system G ( s )= 2
s + 625
s=tf('s');
sys=625/((s^2)+625)
step(sys)
axis([0 2 -0.5 2.5])
grid on;
figure;
pzmap(sys)
axis([-5 1 -30 30])
grid on
b=625;
a=[1 0 625];
[z,p,k] = tf2zp(b,a)
625
Figure 4 : Pole-Zero Map For system G ( s )= 2
s + 625
625
Figure 5 : Step response For system G ( s )= 2
s + 625
4. Settling Time: It is defined as the time for the response to reach and stay within 2 % of its final
value. (0.98 ×C f ( t ) 1.02 ×C f (t ))
4
T s= (If 2% of final value criterion is used)
ζ ωn
3
T s= (If 5% of final value criterion is used)
ζ ωn
Task 2: A closed loop system is in Figure 3. Find and Draw output for each case of step input and
following cases.
Solution :
Code for a :
s=tf('s');
k=9.5;
sys=(k/(s^3 + 5*(s^2) + 7*s + k));
step(sys)
grid on
Code for b :
s=tf('s');
k=3.39;
sys=(k/(s^3 + 5*(s^2) + 7*s + k));
step(sys)
grid on
Code for c :
s=tf('s');
k=7.1;
sys=(k/(s^3 + 5*(s^2) + 7*s + k));
step(sys)
grid on
Damping Ratio, ζ:The frequency of oscillations without damping, like output response of
undamped system in last lab.
Solution :
if(z==0.1)
plot(t,step(t,sys),'--','linewidth',2.5)
else
if(z==0.2)
plot(t,step(t,sys),':','linewidth',4)
else
if(z==0.3)
plot(t,step(t,sys),'-','linewidth',2)
else
if(z==0.4)
plot(t,step(t,sys),'-.','linewidth',4)
else
if(z==0.5)
plot(t,step(t,sys),'--','linewidth',2)
else
plot(t,step(t,sys),'-','linewidth',3)
end
end
end
end
end
end
grid on;
hold on
s=tf('s');
wn = sqrt(16);
figure,
a=0.3;
b=0.3;
for z=0.7:0.1:1.2
if(z<1)
plot(t,step(t,sys),'--','linewidth',a)
end
a=a+1.5;
if(z==1)
plot(t,step(t,sys),'-.','linewidth',b)
end
if(z>1)
b=b+1.2;
plot(t,step(t,sys),'-.','linewidth',b)
end
grid on;
hold on
legend({'\zeta = 0.7','\zeta = 0.8','\zeta = 0.9','\zeta = 1','\zeta =
1.1','\zeta = 1.2'},'FontSize',12,'fontweight','bold')
end
16
Figure 11 : Step response for system G ( s )= 2 when ζ ≤ 0.6
s + 2ζ ωn s+ 16
16
Figure 12: Step response for system G ( s )= 2 when 0.7 ≤ ζ ≤1.2
s + 2ζ ωn s+ 16
Code for Pole zero plot
figure,
for z=0:0.1:1.2
sys=16/((s^2)+ 2*z*wn*s + 16)
pzmap(sys)
axis([-5 1 -5 5])
grid on
hold on
end
16
Figure 13: Pole-Zero plot for system G ( s )= 2 when 0 ≤ ζ ≤1.2
s + 2ζ ωn s+ 16
Observations
1- When ζ = 0 , The poles are at imaginary axis. It shows Undamped response.
2- When ζ increases from 0.1 to 0.9 poles are of type α+jβ. i.e. it contains both real and
imaginary part. It shows Under-damped response.
3- When ζ = 1 the poles are at real axis. It shows critical damped response.
4- When ζ > 1 the poles moves on real axis toward the imaginary axis. It shows Over-Damped
response.