0% found this document useful (0 votes)
14 views

Q1 A Known Feedback System Has A Transfer Function: If Else End

This document contains the solutions to several problems related to control systems. Problem 1 asks to determine the combinations of k and T that result in a stable feedback system with given transfer functions. Problem 2 involves calculating the step response of a unit feedback system with a given open loop transfer function for two values of T. Problem 3 determines the error constants kp, kv, ka for a given unity feedback system. Problem 4 simulates a state space system with given A, B, C, and D matrices. Problem 5 calculates the rise time, peak time, maximum overshoot, and settling time for a step response of a given transfer function.

Uploaded by

Mohit Soni
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Q1 A Known Feedback System Has A Transfer Function: If Else End

This document contains the solutions to several problems related to control systems. Problem 1 asks to determine the combinations of k and T that result in a stable feedback system with given transfer functions. Problem 2 involves calculating the step response of a unit feedback system with a given open loop transfer function for two values of T. Problem 3 determines the error constants kp, kv, ka for a given unity feedback system. Problem 4 simulates a state space system with given A, B, C, and D matrices. Problem 5 calculates the rise time, peak time, maximum overshoot, and settling time for a step response of a given transfer function.

Uploaded by

Mohit Soni
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Assignment 3

Q1 A known feedback system has a transfer function


G(s) = k*(s-1)/ (-s-12)
And feedback transfer function
H(s) =1/ T
What are the combinations of k and T for which system is stable?

Program
k=10;
num1=[0,k,-k];
den1=[0,-1,-12];
G=tf(num1, den1);
T=2;
num2=[0,0,1];
den2=[0,T,0];
H=tf(num2, den2);
[num,den]=feedback(num1,den1,num2,den2);
GH=tf(num,den);
r=roots(den);
if(r<0)
'closed loop system "GH" is a stable system';
else
'closed loop system "GH" is an unstable system';
end

M.Tech C & I 1st Semester

Mohit Soni

Assignment 3

Result
>> G
Transfer function:
-10 s + 10
---------s + 12
>> H
Transfer function:
1
--2s
>> GH
Transfer function:
-20 s^2 + 20 s
----------------2 s^2 + 14 s + 10
>> r
r=
-6.1926
-0.8074
>> ans
ans =
closed loop system "GH" is a stable system
M.Tech C & I 1st Semester

Mohit Soni

Assignment 3

Q2 A unit feedback system with open transfer function


G(s) =e-st/ s(s+1)(s+2)
Determine the step response when
a) T=0
b) T=1
Program
a) T=0
%transfer function of exponential when T=0
[n,d]=pade(0,1);
printsys(n,d,'s')
%transfer function
d2=[1,3,2,0];
H=tf(1,d2);
%transfer function of open loop system
[n3,d3]=series(n,d,1,d2);
printsys(n3,d3)
%step response
step (n3,d3)

Result
M.Tech C & I 1st Semester

Mohit Soni

Assignment 3

num/den =
1
1

num/den =
1
----------------s^3 + 3 s^2 + 2 s

b) T=1

M.Tech C & I 1st Semester

Mohit Soni

Assignment 3

Program
%transfer function of exponential when T=1
[n,d]=pade(1,1);
printsys(n,d,'s')
%transfer function
d2=[1,3,2,0];
H=tf(1,d2);
%transfer function of open loop system
[n3,d3]=series(n,d,1,d2);
printsys(n3,d3)
%step response
step (n3,d3)

Result

M.Tech C & I 1st Semester

Mohit Soni

Assignment 3

num/den =
-1 s + 2
-------s+2

num/den =
-1 s + 2
------------------------s^4 + 5 s^3 + 8 s^2 + 4 s

Q3 A unity feedback system is characterized by open loop transfer function

M.Tech C & I 1st Semester

Mohit Soni

Assignment 3

G(s) =1/ (s+3)*(s+6)


Determine error constants kp, kv, ka?
Program
[n]=1;
[d]=conv ([1,3],[1,6]);
G=tf(n,d);
kp=dcgain(G);
[n1]=conv([1,0],n);
[d1]=d;
sG=tf(n1,d1);
kv=dcgain(sG);
[n2]=conv([1,0],n1);
[d2]=d1;
s2G=tf(n2,d2);
ka=dcgain(s2G);
Result
Transfer function:
1
-------------s^2 + 9 s + 18
kp = 0.0556
kv = 0
ka = 0

Q4 Simulate the State Space System having


A = -9

M.Tech C & I 1st Semester

Mohit Soni

Assignment 3

B=

-26

-24

C=

-1

D=0

5
0
Program
A=[-9,1,0 ; -26,0,1 ; -24,0,0];
B=[2;5;0];
C=[1,2,-1];
D=0;
E=ss(A,B,C,D);
t=0:0.01:5;
U=exp(-t);
lsim(E,U,t);
Result

Q5

Determine Rise Time, Peak Time, Maximum Overshoot and Settling Time
for given system having transfer function

M.Tech C & I 1st Semester

Mohit Soni

Assignment 3

G(s) =2s+25/ S2+4s+25


Program
n=[2,25];
d=[1,4,25];
G=tf(n,d);
t=0:0.005:5;
[y,x,t]=step(n,d,t);
plot(t,y);
%rise time claculation
r=1; while y(r)<1.0001; r=r+1; end;
rise_time=(r-1)*0.005;
%peak time calculation
[ymax,tp]=max(y);
peak_time=(tp-1)*0.005;
%Maximum Overshoot calculation
max_overshoot=(ymax-1);
%settling time calculation
s=1001; while y(s)>0.98 && y(s)<1.02; s=s-1; end;
settling_time=(s-1)*0.005;

Result

M.Tech C & I 1st Semester

Mohit Soni

Assignment 3

>> G
Transfer function:
2 s + 25
-------------s^2 + 4 s + 25
>> rise_time
rise_time = 0.3450
>> peak_time
peak_time = 0.5950
>> max_overshoot
max_overshoot = 0.2784
>> settling_time
settling_time = 1.6000

M.Tech C & I 1st Semester

Mohit Soni

You might also like