Professional Documents
Culture Documents
By
Leuterio, Romarie Thea P.
ECE43
EXERCISE 1
a. Given the value of R and C, obtain the unit step response of the first order system.
a. R = 2k and C = 0.01F
b. R = 2.5k and C = 0.003F
b. Verify in each case that the calculated time constant and the one measure as 63% of the
final value are the same.
c. Obtain the steady state value of the system.
CODES:
clc;
fprintf('\n\n\nEEET423L Feedback Control Systems Lab \n');
fprintf('\nProgrammed By: Leuterio, Romarie Thea P. \nCYS: ECE43 \n\n');
disp('Experiment #8');
disp('Performance of 1st and 2nd Order Systems');
disp('Exercise 1');
fprintf('\n\n')
%codes start
R=[2000 2500];
C=[0.01 0.003];
for i=1:2
n=[1];
d=[R(i)*C(i) 1];
system_1=tf(n,d)
subplot (2,1,i)
step(system_1)
title(['R=',num2str(R(i)),' ','C=',num2str(C(i))]);
end
OUTPUT:
EEET423L Feedback Control Systems Lab
Programmed By: Leuterio, Romarie Thea P.
CYS: ECE43
Experiment #8
Performance of 1st and 2nd Order Systems
Exercise 1
system_1 =
1
--------
20 s + 1
Continuous-time transfer function.
system_1 =
1
---------
7.5 s + 1
Continuous-time transfer function.
>>
EXERCISE 2
Effect of damping ration on performance measured. For a single-loop second order feedback
system given below. Find the step response, let ωn =1.
CODES:
clc;
fprintf('\n\n\nEEET423L Feedback Control Systems Lab \n');
fprintf('\nProgrammed By: Leuterio, Romarie Thea P. \nCYS: ECE43
\n\n');
disp('Experiment #8');
disp('Performance of 1st and 2nd Order Systems');
disp('Exercise 2');
fprintf('\n\n')
%codes start
w=1;
z=0.1;
n1=[w^2];
d1=[1 2.*w.*z 0];
system_2a=tf(n1,d1);
system_2b=feedback(system_2a,[1]);
step(system_2b)
disp(['z=0.1']);
stepinfo(system_2b)
z=[0.4 0.7 1 2];
h=length(z);
for i=1:h
hold on
n2=[w^2];
d2=[1 2*w*z(i) 0];
system_2c=tf(n2,d2);
system_2d=feedback(system_2c,[1]);
step(system_2d)
disp(['z=',num2str(z(i))]);
stepinfo(system_2d)
end
OUTPUT:
EEET423L Feedback Control Systems Lab
ans =
Programmed By: Leuterio, Romarie Thea
P. RiseTime: 2.1268
CYS: ECE43 SettlingTime: 5.9789
SettlingMin: 0.9001
Experiment #8 SettlingMax: 1.0460
Performance of 1st and 2nd Order Overshoot: 4.5986
Systems Undershoot: 0
Exercise 2 Peak: 1.0460
PeakTime: 4.4078
z=0.1 z=1
ans = ans =
z=0.4 z=2
ans = ans =
z=0.7 >>
TABLE:
Settling Steady State
ζ Rise Time Peak Time % Overshoot
Time Value
0.1 1.1272 3.1416 72.92 38.3730 1