Professional Documents
Culture Documents
LAB #3
First Order System Analysis
BY
Name: ID
Abdulla Sulaiman H00350247
Submission Date:
Instructor Name:
GENERAL INFORMATION AND GUIDE
This Lab manual should be used together with the class notes/lecture.
Each student / group should work independently; direct copy of work will be highly
penalized according to the HCT policy.
For group work, contribution of each member of the team should
You are advised to follow the guide provided here for smooth and timely completion
of the experiments.
The following should be noted regarding the report format:
Prepare the report in softcopy, and upload in the appropriate BBL
section.
Diagram/Picture should be neatly and clearly prepared in the report.
For the text font, use 12 points, Time New Roman and double
spacing.
Lab. demonstration of the experiment will be assessed during the Lab. session. See
rubric for the assessment in the BBL.
Report submission due date : check the announcement on the course BBL
Assessment Approach per each experiment:
Report: 60% (see report rubric)
Demonstration: 40% (see practical/simulation rubric)
ELE 4623 Lab No.3
TITLE: Analysis of first Order Systems
PURPOSE: Obtain and analyze first order transfer function of a system, and investigate effects of
system parameters on step response performance.
Method:
1. Theoretical analysis of a first order system.
2. Deriving standard transfer function of a first order system
3. Analyze step response of the system
4. Investigate the effect of system parameters on the response performance data such as speed
and steady state accuracy.
5. Results and analysis.
6. Prepare report
Lab resources:
1. Computer systems /Laptops
2. MATLAB software
3. Practical first order system
Expected Outcome:
1. Standard first order system transfer function
2. MATLAB analysis codes
3. Results of model validation
4. Report submission
Background
The simplest possible dynamic system is one, which satisfies a first order, linear, differential
equation. For a system with input, x(t) and output, y(t) shown in figure 1 below,
n
Figure 1 : System input-output Block Diagram
If a unit step input, x(t) = u(t) (X(s)=1/s) is applied to the system, the output Y(s) is given as:
b K
Y ( s )= =
s ( s+ a ) s (τs+ 1)
LAB Exercises
System Description:
The block diagrams shown in Figure 3 and Figure 4 below model a simple DC motor for speed
control application. Input V(s) is the desired speed in voltage, and the output ω (s ) is the actual
speed. Tachogenerator position sensor converts the actual speed to corresponding voltage. The
amplifier, A, is used to control the speed response of the motor.
PARTA: In-LAB
First Order System Analysis
A.1. Derive the transfer function of the above system as a standard first order system describe in
equation (2).
Step should be clearly shown for full mark.
A.2. Compare the transfer function you obtained in A.1 with equation (3) and state the expression
for the system’s steady state value, K, and the time constant, τ .
b 1
K= , τ =
a a
0.5 1
¿ ,=
1.05 1.05
K = 0.476, 𝜏 = 0.952
A.3 Develop MATLAB codes to simulate the system step response for the given default parameters.
The codes should be written in parameterized form, that is, declare variables for each system
parameter in the transfer function expression.
A.3.1. Present the MATLAB Codes (Note: Show your codes to the instructor.)
Code:
clc;
clear all;
close all;
R=10;
L=10;
N=0.5; %Gears
K=10; %Amplifier
H=0.1; %Tachogenerator
num=[1];
den=[L R];
Motor_tf=tf(num, den);
OL_sys=K*Motor_tf*N; %Series
CL_sys=feedback(OL_sys,H); %Feedback
step(CL_sys)
stepinfo(CL_sys)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
grid on
A.3.2. Show the system Step response plot: [format, label, correctness and neatness]
Hint: provide observation on the system performance in terms of speed of response and steady state
accuracy.
As seen
above, the
system has
a rising
time of
2.0924
seconds, a
PART B : In-LAB
Effect of the Motor Field Resistance, R, on the response performance
Goal: Investigate the effect of the motor field resistance, R, on the system response performance
Repeat the step response analysis with ONLY the motor field resistance is reduced to 1Ω and
increased to 100Ω.
B.1. Present the MATLAB Codes for R = 1Ω and R = 100Ω (Note: Show your codes to the
instructor.)
Code:
clc;
clear all;
close all;
R1=1;
R2=10;
R3=100;
L=10;
N=0.5; %Gears
K=10; %Amplifier
H=0.1; %Tachogenertor
%System one
num1=[1];
den1=[L R1];
Motor_tf1=tf(num1, den1);
OL_sys1=K*Motor_tf1*N; %Series
CL_sys1=feedback(OL_sys1,H); %Feedback
stepinfo(CL_sys1)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys1); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
%System two
num2=[1];
den2=[L R2];
Motor_tf2=tf(num2, den2);
OL_sys2=K*Motor_tf2*N; %Series
CL_sys2=feedback(OL_sys2,H); %Feedback
stepinfo(CL_sys2)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys2); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
%System three
num3=[1];
den3=[L R3];
Motor_tf3=tf(num3, den3);
OL_sys3=K*Motor_tf3*N; %Series
CL_sys3=feedback(OL_sys3,H); %Feedback
stepinfo(CL_sys3)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys3); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
B.2. Show the system Step response plots for all three cases (1Ω, 10Ω and 100Ω) on same
graph or use sub-plots for comparative view: [format, label, correctness and neatness]
B.3 Determine the Step Response Performance parameters
B.4. Summary of Effect of Motor field resistance, R, on the system performance (minimum 50
words)
Hint: provide observation on the system performance in terms of speed of response and steady state
accuracy.
Based on
the data
above, it is
seen that
when we
adjusted
PART C: Post-LAB
Effect of the Motor Field Inductance, L, on the response performance
Goal: Investigate the effect of the motor field inductance, L, on the system response performance
Repeat the step response analysis with ONLY the motor field inductance is reduced to 1H and
increased to 20H.
C.1. Present the MATLAB Codes for L = 1H and L = 20H
Code:
clc;
clear all;
close all;
R=10;
L1=1;
L2=10;
L3=20;
N=0.5; %Gears
K=10; %Amplifier
H=0.1; %Tachogenertor
%System one
num1=[1];
den1=[L1 R];
Motor_tf1=tf(num1,den1);
OL_sys1=K*Motor_tf1*N; %Series
CL_sys1=feedback(OL_sys1,H); %Feedback
stepinfo(CL_sys1)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys1); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
%System two
num2=[1];
den2=[L2 R];
Motor_tf2=tf(num2,den2);
OL_sys2=K*Motor_tf2*N; %Series
CL_sys2=feedback(OL_sys2,H); %Feedback
stepinfo(CL_sys2)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys2); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
%System three
num3=[1];
den3=[L3 R];
Motor_tf3=tf(num3,den3);
OL_sys3=K*Motor_tf3*N; %Series
CL_sys3=feedback(OL_sys3,H); %Feedback
stepinfo(CL_sys3)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys3); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
L = 1H L = 10H L = 20H
C.4. Summary of Effect of Motor field inductance, L, on the system performance (minimum
50 words)
Hint: provide observation on the system performance in terms of speed of response and steady state
accuracy.
Based on
the data
above, it
can be seen
PART D: Post-LAB
Effect of the Gear ratio, N, on the response performance
Goal: Investigate the effect of the gear ratio, N, on the system response performance
Repeat the step response analysis with ONLY the gear ratio, N is reduced to 0.1 and increased to 2.
D.1. Present the MATLAB Codes for N = 0.1 and N = 2 (Note: Show your codes to the
instructor.)
Code:
clc;
clear all;
close all;
R=10;
L=10;
%Gears
N1=0.1;
N2=0.5;
N3=2;
K=10; %Amplifier
H=0.1; %Tachogenertor
%System one
num1=[1];
den1=[L R];
Motor_tf1=tf(num1,den1);
OL_sys1=K*Motor_tf1*N1; %Series
CL_sys1=feedback(OL_sys1,H); %Feedback
stepinfo(CL_sys1)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys1); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
%System two
num2=[1];
den2=[L R];
Motor_tf2=tf(num2,den2);
OL_sys2=K*Motor_tf2*N2; %Series
CL_sys2=feedback(OL_sys2,H); %Feedback
stepinfo(CL_sys2)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys2); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
%System three
num3=[1];
den3=[L R];
Motor_tf3=tf(num3,den3);
OL_sys3=K*Motor_tf3*N3; %Series
CL_sys3=feedback(OL_sys3,H); %Feedback
stepinfo(CL_sys3)
%The steady state error
SP=1; %Input value, if you put 1 then is the same as step(sys)
[y,t]=step(SP*CL_sys3); %get the response of the system to a step with amplitude
SP
sserror=abs(SP-y(end)) %get the steady state error
D.2. Show the system Step response plots for all three cases (0.1, 0.5 and 2) on same graph or
use sub-plots for comparative view: [format, label, correctness and neatness]
D.4. Summary of Effect of the gear ration, N, on the system performance (minimum 50
words)
Hint: provide observation on the system performance in terms of speed of response and steady state
Changing
the gear
ration N
has
influenced
accuracy.
Summary of the system parameter changes on the first order system standard
parameters and response performance
Hint: complete the table below to present the summary of the system parameter changes on both the
first order standard parameters and step response performance
Reference Materials:
(Provide reference to all materials used in this assignment)