Lab 6
Lab 6
Lab Lab
Log book
Student name Reg. No. completion report Total/15
Marks / 5
Marks / 5 Marks / 5
Ahmed Razi Ullah 366191
1. Objectives
2. Model Verification
In the lab on modeling we derived mathematical models of the DC motor and the
pendulum. These models were derived based on the first principles. We didn’t test if
these models do in fact represent the actual hardware or not.
In the past few labs we have learned data acquisition and obtaining time response of
systems. We can use these tools to verify our derived models. We can apply a signal,
e.g. a step, to the actual plant using data acquisition and get its output. We can also
apply the same signal to the derived model and get its output. If the derived model is
correct then both the outputs should be similar.
If the outputs do not match, then the model is of course incorrect or inaccurate. In this
case we can either check our derivation of the model for any errors or we can use
system identification techniques to estimate the system parameters.
In your text book (Norman Nise, 5 th edition), you are introduced to basic system
identification. In this lab you will use some of the techniques learnt in sections 4.3 and
4.6 of your text books to identify and verify your models.
In this handout you will use the concepts/skills that you have learned in you lectures
and previous lab handouts. Therefore, unlike the previous handouts, this handout only
outlines what you have to do and doesn’t include each and every small step.
MATLAB-CODE:
Jeq = 1.84e-6;
m = 0.0270;
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;
Eq1_ss= ss(Eq1);
pole_zero1 =zpk(Eq1) % Pole Zero form of Motor Speed Transfer Function
% Eq2_ss= ss(Eq2);
pole_zero2= zpk(Eq2) % Pole Zero form of Motor Position Transfer Function
RESULT:
Create a VI to do model verification of DC motor speed. Verify the model that you have
derived for the DC motor speed for various signals e.g. step, square wave, triangular
wave, sine wave, etc. Comment on any differences you see in the output of the model
and the actual plant.
Your VI should have a structure similar to the one shown in the figure below. Remember
to use the data acquisition VI and the models that you have created in earlier labs.
Model
Graph to
Signal plot both
outputs
Actual plant
Exercise 2
Do the above exercise for DC motor position. Besides the signal listed above also verify the model
for a single pulse input.