Beruflich Dokumente
Kultur Dokumente
Programme
Registeration # DDP-FA10-BTE-008
Results:-
den1 =
150 75 50 10
Transfer function:
2
-------------------------------150 s^4 + 75 s^3 + 50 s^2 + 10 s
num2 =
10
den2 =
150 75
50 10
Transfer function:
10 s^2 + 5 s + 2
-------------------------------150 s^4 + 75 s^3 + 50 s^2 + 10 s
num3 =
2
den3 =
150 75 50 10
Transfer function:
2
---------------------------150 s^3 + 75 s^2 + 50 s + 10
num4 =
10
den4 =
150 75 50 10
Transfer function:
10 s^2 + 5 s + 2
---------------------------150 s^3 + 75 s^2 + 50 s + 10
1.5
Amplitude
Amplitude
1.5
1
0.5
1
0.5
10
Time (seconds)
Linear Simulation Results
Amplitude
Amplitude
10
Time (seconds)
0.5
5
Time (seconds)
Q1(manual):Matlab code:-
10
0.5
5
Time (seconds)
10
%---------------------------% Question#2
%---------------------------J=3.2284E-6;
b=3.5077E-6;
Kt=0.0274;
Kb=0.0274;
R=4;
L=2.75E-6;
num=[Kt];
den=[J.*L (b.*L+J.*R) (b.*R+Kb.*Kt)];
sys=tf(num,den)
t=0:0.001:0.4;
for var=-4:1:4
x=var.*heaviside(t);
lsim(sys,x,t)
hold on
grid on
title('step response of speed control')
x=lsim(sys,x,t);
max_angular_velocity=x(length(x)-1)
end
num1=[Kt./R.*J];
den1=[1 (b.*R+Kb.*Kt)./R.*J 0];
sys1=tf(num1,den1)
figure
for var1=-4:1:4
x1=var1.*heaviside(t);
lsim(sys1,x1,t)
hold on
grid on
title('step response of position control')
x1=lsim(sys1,x,t);
max_angular_position=x1(length(x1)-1)
end
Results:Transfer function:
0.0274
----------------------------------------8.878e-012 s^2 + 1.291e-005 s + 0.0007648
max_angular_velocity =
-143.3072
max_angular_velocity =
-107.4804
max_angular_velocity =
-71.6536
max_angular_velocity =
-35.8268
max_angular_velocity =
0
max_angular_velocity =
35.8268
max_angular_velocity =
71.6536
max_angular_velocity =
107.4804
max_angular_velocity =
143.3072
Transfer function:
2.211e-008
-----------------s^2 + 6.173e-010 s
max_angular_position =
2.3121e-007
max_angular_position =
2.3121e-007
max_angular_position =
2.3121e-007
max_angular_position =
2.3121e-007
max_angular_position =
2.3121e-007
max_angular_position =
2.3121e-007
max_angular_position =
2.3121e-007
max_angular_position =
2.3121e-007
max_angular_position =
2.3121e-007
100
Amplitude
50
-50
-100
-150
0.05
0.1
0.15
0.2
0.25
0.3
0.35
0.4
0.3
0.35
0.4
Time (seconds)
Amplitude
2.5
2
1.5
1
0.5
0
-0.5
0.05
0.1
0.15
0.2
Time (seconds)
0.25
Results:-
Amplitude
20
10
0
-10
-20
-30
-40
0.05
0.1
0.15
0.2
0.25
0.3
0.35
0.4
0.35
0.4
Time (seconds)
Amplitude
1
0
-1
-2
-3
-4
-5
0.05
0.1
0.15
0.2
Time (seconds)
0.25
0.3