Lab No 03 Instrumentation and Control (EL-305)
NED University of Engineering and Technology Department of Electronic Engineering
LAB SESSION 03
OBJECT: Mathematical modeling of Multiple-Element Mechanical Translation
System
Theory:
Where;
f(t) is applied force to the mass M1.
B1 and B2 are the viscous friction coefficients indicating the sliding
friction between the masses M1 and M2 and the surface.
According to the rules for node equations:
For node a: (M1D2 + B1D + B3D + K1)xa – (B3D)xb = f
For node b: -(B3D)xa + (M2D2 + B2D + B3D + K2)xb = 0
X1=Xb for spring K2 X2=Xʹ1=Vb
X3=Xa for spring K1 X4=Xʹ3=Va
The system equations are:
PROCEDURE:
1. create a MATLAB-function multiple_element_sys.m
function dXdt=multiple_element_sys (t,X)
Fa=300; %(N)
M1=750; %(Kg)
M2=750; %(Kg)
B1=20; %(Nsec/m)
B2=20; %(Nsec/m)
B3=30; %(Nsec/m)
K1=15; %(N/m)
Lab No 03 Instrumentation and Control(EL-305)
NED University of Engineering and Technology Department of Electronic Engineering
K2=15; %(N/m)
dXdt(1,1)=X(2);
dXdt(2,1)=-K2/M2*X(1)-((B1+B2)/M2)*X(2)+B3*X(4)/M2;
dXdt(3,1)=X(4);
dXdt(4,1)=B3/M1*X(2)-K1/M1*X(3)-((B1+B3)/M1)*X(4)+Fa/M1;
2. Write another M. file to call the function:
clear all;
close all;
clc;
X0=[0;0;0;0]; % (Initial xb, Vb, xa, Va)
[t,X]=ode45('multiple_element_sys',[0 200],X0);
figure;
subplot(2,1,1);
plot(t,X(:,1));
plot(t,X(:,2),'r');
xlabel('Time(t)');
ylabel('Position xb / Speed Vb');
title('Mass spring system');
legend('xb', 'Vb');
grid;
subplot(2,1,2);
plot(t,X(:,3));
hold;
plot(t,X(:,4),'r');
xlabel('Time(t)');
ylabel('Position xa / Speed Va');
title('Mass spring system');
legend('xa', 'Va');
grid;
Lab No 03 Instrumentation and Control(EL-305)
NED University of Engineering and Technology Department of Electronic Engineering
OBSERVATIONS:
Parameter Behavior of system
Mass M1
M2
Friction B1
Coefficient
B2
B3
Stifness K1
K2
Applied Fa
Force
CONCLUSION:
Criteria Poor (25%) Fair (50%) Good (75%) Excellent (100%)
Set up • Setup of equipment is not accurate • Setup of equipment is generally • Setup of equipment is generally • All equipment accurately placed
equipment • Help is required with several major workable with several details that accurate with 1 or 2 small details that • All necessary supplies on hand
and care details. need refinement need refinement • Very neat and organized
(20 points) • Many necessary supplies must be • Some necessary supplies must be • All necessary supplies on hand
found during lab (mid-lab) or after searched out after start of
start of experiment experiment
Following • Lacks the appropriate knowledge of • Demonstrates general knowledge of • Demonstrates good knowledge of the • Demonstrates very good knowledge
procedure the lab procedures lab procedures lab procedures of lab procedures
(30 points) • Often requires help from the • Requires help from teacher with • Will ask peers for help with problems • Gladly helps other students to follow
instructor to complete even basic some steps in procedures in lab procedures procedures
procedures • Works to follow each step before • Thoroughly and carefully follows
moving on to the next step each step before thoughtfully moving
on to the next step
Data • Measurements are incomplete, • Measurements are somewhat • Measurements are mostly accurate • Measurements are both accurate
collection inaccurate and imprecise inaccurate and very imprecise • Observations are generally complete and precise
(20 points) • Observations are incomplete or not • Observations are incomplete or • Work is organized • Observations are very thorough and
included recorded in a confusing way • Only 2 or 3 minor errors using may recognize possible errors in data
• Symbols, units and significant figures • There are 3 or more minor errors symbols, units and significant digits. collection
are not included using symbols, units and significant • Work is neat and organized
digits or 2 major errors • Includes appropriate symbols, units
and significant digits
Safety • Proper safety precautions are • Proper safety precautions are often • Proper safety precautions are • Proper safety precautions are
(10 points) consistently missed missed generally used consistently used
• Needs to be reminded often during • Needs to be reminded more than • May need to be reminded once • Consistently thinks ahead to ensure
the lab once during the lab during the lab safety
• Will often help other students to
conduct labs safely
Reporting • Many observations are not reported • Some significant observations are • Few relevant observations are missed • All relevant observations are
the results • Results are not discussed missed but report covers overall • Results are discussed reported and results are thoroughly
(20 objective of the lab session assessed
points) • Results are briefly discussed
Penalties 1. Late for more than 10 minutes without strong justification • -25 points of total score
2. Not wearing proper attire in the lab or wearing metallic jewelry which poses a safety hazard
3. Not obeying technician/demonstrator’s instructions
4. Eating/drinking in the lab