0% found this document useful (0 votes)
9 views12 pages

Lab 10

Lab 10 of control system

Uploaded by

aazibraja81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views12 pages

Lab 10

Lab 10 of control system

Uploaded by

aazibraja81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

LAB 10

Time Response of Control System


Activity :

CODE:
T = tf(400, [1 12 400]);
G = tf(900, [1 90 900]);
Y = tf(225, [1 30 225]);
X = tf(625, [1 0 625]);
figure;
subplot(2,2,1);
step(T);
title('Step Response of T(s)');
grid on;
subplot(2,2,2);
step(G);
title('Step Response of G(s)');
grid on;
subplot(2,2,3);
step(Y);
title('Step Response of Y(s)');
grid on;
subplot(2,2,4);
step(X);
title('Step Response of X(s)');
grid on;
figure;
subplot(2,2,1);
pzmap(T);
title('Pole-Zero Map of T(s)');
grid on;
subplot(2,2,2);
pzmap(G);
title('Pole-Zero Map of G(s)');
grid on;
subplot(2,2,3);
pzmap(Y);
title('Pole-Zero Map of Y(s)');
grid on;
subplot(2,2,4);
pzmap(X);
title('Pole-Zero Map of X(s)');
grid on;
T_info = stepinfo(T);
G_info = stepinfo(G);
Y_info = stepinfo(Y);
X_info = stepinfo(X);
disp('Step Response Characteristics of T(s):');
disp(T_info);
disp('Step Response Characteristics of G(s):');
disp(G_info);
disp('Step Response Characteristics of Y(s):');
disp(Y_info);
disp('Step Response Characteristics of X(s):');
disp(X_info);

OUTPUT:
CODE:
t=0:0.01:5;
num=[1 10];
den=[1 6 9 10];
sys=tf(num,den);
x=0.5*t;
r=exp(x);
ltiview({'step'},sys,x)
OUTPUT:
CODE:
T = tf(400, [1 12 400]);

G = tf(900, [1 90 900]);
Y = tf(225, [1 30 225]);
X = tf(625, [1 0 625]);
figure;
subplot(2,2,1);
step(T);
title('Step Response of T(s)');
grid on;
subplot(2,2,2);
step(G);
title('Step Response of G(s)');
grid on;
subplot(2,2,3);
step(Y);
title('Step Response of Y(s)');
grid on;
subplot(2,2,4);
step(X);
title('Step Response of X(s)');
grid on;
figure;
subplot(2,2,1);
pzmap(T);
title('Pole-Zero Map of T(s)');
grid on;
subplot(2,2,2);
pzmap(G);
title('Pole-Zero Map of G(s)');
grid on;
subplot(2,2,3);
pzmap(Y);
title('Pole-Zero Map of Y(s)');
grid on;
subplot(2,2,4);
pzmap(X);
title('Pole-Zero Map of X(s)');
grid on;
T_info = stepinfo(T);
G_info = stepinfo(G);
Y_info = stepinfo(Y);
X_info = stepinfo(X);
disp('Step Response Characteristics of T(s):');
disp(T_info);
disp('Step Response Characteristics of G(s):');
disp(G_info);
disp('Step Response Characteristics of Y(s):');
disp(Y_info);
disp('Step Response Characteristics of X(s):');
disp(X_info);
OUTPUT:

Code:
num=[225];

denum=[1 2 0];

G=tf(num,denum);
T=feedback(G,1,-1);

[num,denumt]=tfdata(T,'v');

wn=sqrt(denumt(3));

z=denumt(2)/(2*wn);

Ts=4/(z*wn);

Tp=pi/(wn*sqrt(1-z^2)) pos=exp(-z*pi/sqrt(1-z^2))*100;

step(T);

OUTPUT:
Wn=15
z=0.0667
ts=4
tp=0.2099
pos=81.0660
Code:
G1 = tf(100, [1 100]);
G2 = tf(0.2083, [1 1.71 0]);
KA = 1000;
sensitivity = 1/pi;
G_open = sensitivity * KA * G1 * G2;
G_closed = feedback(G_open, sensitivity);
figure;
step(G_closed);
title('Step Response of Position Control System');
grid on

OUTPUT:
Code:
G = tf(59.292, [1 6.9779 15.1239 0]);
D1 = tf(3, 1);
D2 = tf([3 15], [1 0]);
D3 = tf([0.3 3 15], [1 0]);
G_open1 = series(D1, G);
G_open2 = series(D2, G);
G_open3 = series(D3, G);
G_closed1 = feedback(G_open1, 1);
G_closed2 = feedback(G_open2, 1);
G_closed3 = feedback(G_open3, 1);
figure;
subplot(3, 1, 1);
step(G_closed1);
title('Step Response of Unity Feedback System with D1(s)');
grid on;

subplot(3, 1, 2);
step(G_closed2);
title('Step Response of Unity Feedback System with D2(s)');
grid on;

subplot(3, 1, 3);
step(G_closed3);
title('Step Response of Unity Feedback System with D3(s)');
grid on;
OUTPUT:
SIMULINK MODEL:
.) By using (s+0.01)/s block:

OUTPUT:
ACTIVITY 3:

Simulink Model:
by using Step input 5
OUTPUT:

OUTPUT:
Step input 10:

You might also like