Labbb 3
Labbb 3
22MDMLE086
LAB NUM
03
Submitted from:
Abbas Ahmad Afridi
Reg Number:
22MDMLE086
COURSE :
Control Engineering
Submitted to :
Engr Mushuf Saib
Abbas Ahmad Afridi
22MDMLE086
Introduction to SIMULINK
Objective
To grasp the important role of mathematical models of physical systems in the design and
analysis of first order control systems.
𝑑𝑣
𝑀 = 𝐹 − 𝑏𝑣
𝑑𝑡
𝑑𝑡
For our system, we will assume that:
M = 1000 kg (a Dodge Neon has a mass of about 1100 kg), b = 40 N*sec/m
𝑑𝑣 1
= (𝐹 − 𝑏𝑣)
𝑑𝑡 𝑀
To model this equation, we begin by inserting a Sum block and a Gain block into a new model
window. The Sum block represents adding together the forces and the Gain block symbolizes
dividing by the mass. Connecting the blocks with a line gives the following in the model
window:
We also modify the Gain block so that it divides by the car's mass. Double-click on the block and
change the Gain to 1/1000. To keep our block diagram organized and easy to understand, we
next add labels to the signals and blocks we have included so far. A block is labeled by clicking
on the text underneath it and editing the description. Draw lines to the open input terminals of
the Sum block and open output terminal of the Gain block and label the signals and blocks in
the model so that they look like:
To relate the car's acceleration to its velocity-dependent damping force, we will integrate the v dot
signal. Place an Integrator block in the model, draw and label the velocity signal so that the model looks
like:
To obtain the damping force from the velocity, we need to branch the velocity signal and multiply it by
the damping coefficient (b). The velocity signal is branched by clicking the right mouse button anywhere
Abbas Ahmad Afridi
22MDMLE086
on its line (or hold down CTRL and use the left mouse button) and dragging away a new signal. A Gain
block is then used to multiply the velocity by the damping coefficient. Finally, edit the Gain block's
parameters so that its gain equals the damping coefficient of the system (40 N*sec/m). These additions
to the model should cause it to look like:
Note that the block diagram is now set up with input F (engine force) and output v (car velocity).
Step Input
To be able to successfully simulate the system, we need to specify an applied input, 𝐹. Let us assume
the car is initially at rest, and that the engine applies a step input of 𝐹 = 400 𝑁 at 𝑡 = 0. Insert a
Step block from the Sources into the model and also add a Scope block from the Sinks to monitor the
system's velocity, v. The Simulink model window should now look like: