Вы находитесь на странице: 1из 7

Linear Control System 2016-EE-113

LAB NO 08
OBJECT: Determine the step response of 1st order system by creating a model in Simulink and by generating a code in matlab.
TASK 01:
Find the step response of following 1st order open loop system by creating model in Simulink.
A) G1(s)=1/s+2
SIMULATION:
RESULT:

G2(s)=4/s+6

SIMULATION:
RESULT:

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

SIMULATION:
RESULT:

G(s)=10/2s+10

SIMULATION:
RESULT:

TASK 02:-
Find the step response of following 1st order closed loop system by creating model in Simulink.
A) G(s)=1/s+ 2 , H(s)=1
SIMULATION:
0.2989

SIR SYED UNIVERSITY OF ENGINEERING AND TECHNOLOGY


Linear Control Systems 2016-EE-113

0.3144
0.3230
0.3276
0.3302
0.3316
0.3324
0.3328
0.3331
0.3332
0.3332
0.3333
0.3333

G2(s)=4/s+6 , H2(s)=0.5/s

SIMULATION:
RESULT:

0.3144
0.3230
0.3276
0.3302
0.3316
0.3324
0.3328
0.3331
0.3332
0.3332
0.3333
0.3333

TASK NO 03:
A) For the given open loop system specifies the transient response and steady state response in the step response graph
G(s)=2s+1/2.5s+3
SOURCE CODE:
s=tf('s')
g=(2*s+1)/(2.5*s+3)
step(g)
gtext('transient area')
gtext('steady state')
stepinfo(g)
RESULT:

B) For the given closed loop system specifies the transient


response and steady state response in the step response
graph
G(s)=2s+1/2.5s+3 , H(s)=1/s
SOURCE CODE:
s=tf('s')
g=(2*s+1)/(2.5*s+3)
h=1/s;
y=feedback(g,h)
step(y)
gtext('transient area')
gtext('steady state')
stepinfo(g)
RESULT:

TASK NO 04:
A) Find Plot the step response of standard 1st order system G(s)=K/TS+1
With different values of T = 0.1,0.5,0.8,2 & VALUE of k = 2.5 without
using the plot command and show the command in one window of figure
SOURCE CODE:
t=[0.1 0.5 0.8 2]
for i=1:4; t1=0:0.001:5;
n1=[2.5]
d1=[t(i) 1]
g=tf(n1,d1)
subplot(4,1,i)
step(g,t1)

Sir Syed University Of Engineering And Technology


Linear Control Systems 2016-EE-113

gtext('transient area')
gtext('steady state')
end
RESULT:

B) FindPlot the step response of standard 1st order system G(s)=K/TS+1 With different values of T = 0.5 & VALUE of k =o.1, 0.5 , 1 ,
2 without using the plot command and show the command in one window of figure
SOURCE CODE:
k=[0.1 0.5 1 2]
for i=1:4; t1=0:0.001:5;
n1=[k(i)]
d1=[0.5 1]
g=tf(n1,d1)
subplot(4,1,i)
step(g,t1)
gtext('transient area')
gtext('steady state')
end
RESULT:

TASK NO 05:
A) Generate a matlab code to plot the step response of the open
loop first order system by using the plot command
G(s)= 1.5s+2/3s+0.1
SOURCE CODE:
s=tf('s')
g=(1.5*s+2)/(3*s+0.1)
step(g)
gtext('Transient Area')
gtext('Steady State')
y=stepinfo(g)
plot(y)
RESULT:

B)
SOURCE CODE:
s=tf('s')
g=(1.5*s+2)/(3*s+0.1)
h=1
y=feedback(g,h)
step(y)
gtext('Transient Area')
gtext('Steady State')
z=stepinfo(y)
plot(z)
RESULT:

LAB ASSIGNMENT

TASK NO 01:

Find the step response of following 1st order open loop system by creating model in Simulink.
A) G(s) =2/s+4
SIMULATION:

RESULT:

Sir Syed University Of Engineering And Technology


Linear Control Systems 2016-EE-113

B) G(s)=s/s+3
SIMULATION:

RESULT:

C) G(S)=s+2/S+3
SIMULATION:

RESULT:

D) GG(s)=5/s+5
SIMULATION:

RESULT:

Sir Syed University Of Engineering And Technology


Linear Control Systems 2016-EE-113

TASK NO 02:
Find the step response of following 1st order closed loop system by creating model in Simulink.
A) G(s)=2/s+4, H(s)=1
SIMULATION:

RESULT:

B) G(s)=s/s+3 , H(S)=2
SIMULATION:
simout

To Workspace

1
s+3
Step Transfer Fcn Scope

2
1
Transfer Fcn1

RESULT:

C) G(S)=s+2/s+4 , H(s)= 3
SIMULATION:

RESULT:

Sir Syed University Of Engineering And Technology


Linear Control Systems 2016-EE-113

D) G(s)= 5/s+5, H(s)=4


SIMULATION:

RESULT:

TASK NO 03:-
A) For the given open loop system specifies the transient response and steady state response in the step response graph
G(s)=2.5s+3/2s+1
SOURCE CODE:
s=tf('s')
g=(2*s+1)/(2.5*s+3)
step(g)
gtext('Transient area')
gtext('steady state')
RESULT:

C) For the given closed loop system specifies the


transient response and steady state response in the
step response graph
G(s)=2.5s+3/2s+1 , H(s)= 5
SOURCE CODE:
s=tf('s')
g=(2.5*s+3)/(2*s+1)
h=1/3
y=feedback(g,h)
step(g)
gtext('Transient area')
gtext('steady state')
RESULT:

TASK NO 04:-
A) Plot the step response of standard 1st order system
G(s)=K/TS+1 With different values of T = 0.2,0.4,1,3 & VALUE of
k =1.5 without using the plot command and show the
command in one window of figure
SOURCE CODE:

t=[0.2 0.4 1 3]
for i=1:4; t1=0:0.001:5;
n1=[1.5]

Sir Syed University Of Engineering And Technology


Linear Control Systems 2016-EE-113

d1=[t(i) 1]
g=tf(n1,d1)
subplot(4,1,i)
step(g,t1)
gtext('transient area')
gtext('steady state')
end
RESULT:

B) Plot the step response of standard 1st order system G(s)=K/TS+1 With different values of T = 0.8 & VALUE of k =0.2,0.4,0.8,3
without using the plot command and show the command in one window of figure
SOURCE CODE:
k=[0.2 0.4 0.8 3]
for i=1:4; t1=0:0.001:5; Step Response
0.2 steady state

n1=[k(i)]

Amplitude
transient area System: g System: g
System: g
Settling time (seconds): 3.13 Final value: 0.2
0.1 Rise time (seconds): 1.76

d1=[0.8 1] 0
0 0.5 1 1.5 2 2.5
Time (seconds)
3 3.5 4 4.5 5

Step Response
g=tf(n1,d1) 0.4 steady state

Amplitude
transient area System: g System: g
System: g
Settling time (seconds): 3.13 Final value: 0.4
0.2 Rise time (seconds): 1.76

subplot(4,1,i) 0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5

step(g,t1) 1
Time (seconds)
Step Response
steady state

Amplitude
transient area

gtext('transient area') 0.5 System: g


Rise time (seconds): 1.76
System: g
Settling time (seconds): 3.13
System: g
Final value: 0.8

gtext('steady state') 4
0 0.5 1 1.5 2 2.5
Time (seconds)
Step Response
3 3.5 4 4.5 5

end

Amplitude
steady state
transient area
2 System: g System: g System: g
Rise time (seconds): 1.76 Settling time (seconds): 3.13 Final value: 3

RESULT: 0
0 0.5 1 1.5 2 2.5
Time (seconds)
3 3.5 4 4.5 5

TASK NO 05:-
A) Generate a matlab code to plot the step response of the open loop first order system by using the plot command
G(s)=3*s+0.1/1.5*s+2
SOURCE CODE:
s=tf('s')
g=(3*s+0.1)/(1.5*s+2)
step(g)
gtext('Transient Area')
gtext('Steady State')
y=stepinfo(g)
plot(y)
RESULT:
B) Generate a matalb code to plot the step respone of the given
closed loop 1st order system by using plot command
G(s)=3*s+0.1/1.5*s+2 , H(s)= 2
SOURCE CODE:
s=tf('s')
g=(3*s+0.1)/(1.5*s+2)
h=1/s
y=feedback(g,h)
step(y)
gtext('Transient Area')
gtext('Steady State')
y=stepinfo(g)
plot(y)
RESULT:

Sir Syed University Of Engineering And Technology

Вам также может понравиться