Lab Report 3
Lab Report 3
Objectives of Lab 3
EE-379: Control Systems Page 1
The objectives of this lab are:
Given a set of differential equations describing a system, learn how to find the transfer
function of the system.
Introduction:
A system’s behavior is usually described simply by creating a mathematical model using
transfer function and differential equations. It makes the system easier to understand and is usually
the first step when designing a new system. A transfer function is a very useful technique to
represent a system in terms of its input-output relationship. LabView allows us to simulate all these
functions and observe their practical significance.
Lab Tasks
Task 1:
Simulink Model
Model:
Parameters:
MATLAB Code:
Je=1.84e-6;
e=0.000271;
m=0.027;
r=0.0826;
Kg=1;
Jm=1.80e-4;
ng=1;
nm=0.69;
L=0.0955;
g=9.8;
Kt=0.0334;
R=8.7;
Output:
MATLAB Code:
Je=1.84e-6;
e=0.000271;
m=0.027;
r=0.0826;
Kg=1;
Jm=1.80e-4;
ng=1;
nm=0.69;
L=0.0955;
g=9.8;
Kt=0.0334;
R=8.7;
a= Je+(m*(r)^2)+ng*(Kg^2)*Jm;
b=m*L*r;
c= (4/3)*m*(L^2);
d=m*g*L;
f=(nm*ng*Kt*Kg)/R;
MATLAB Code:
Je=1.84e-6;
e=0.000271;
m=0.027;
r=0.0826;
Kg=1;
Jm=1.80e-4;
ng=1;
nm=0.69;
L=0.0955;
g=9.8;
Kt=0.0334;
R=8.7;
a= Je+(m*(r)^2)+ng*(Kg^2)*Jm;
b=m*L*r;
c= (4/3)*m*(L^2);
d=m*g*L;
f=(nm*ng*Kt*Kg)/R;
num = [(b^2)*f 0 0];
den = [a*b*c (e*b*c-b) -a*b*d -e*d*b];
Transfer_Function = tf(num,den)
Task 4:
Transfer Functions in Simulink
Task 5:
Transfer Functions in Lab VIEW
Conclusion:
In this lab, we learn how to represent a set of differential equations as a model in Simulink.
Moreover, we also create transfer functions from these equations using Laplace Transform. The
created transfer functions were then simulated using MATLAB code, Simulink model as well as in Lab
VIEW. We also learned how to create general functions and define their respective parameters in the
software.