Professional Documents
Culture Documents
Control Systems Lab: Introduction To SIMULINK
Control Systems Lab: Introduction To SIMULINK
Introduction to SIMULINK
Surrayya Mobeen
Department of Aeronautics and Astronautics
Institute of Space Technology, Islamabad
1. Introduction
3. Task
1. Introduction
3. Task
Introduction
1. Introduction
3. Task
Mass Spring System
Consider the simple mass spring system shown in the gure below
This opens the Simulink Start Page. Click on Blank Model. This opens the
following window:
Click on the button highlighted in the above gure. This will open the
Simulink Library Browser.
In the search bar, write sum. Drag the highlighted block to the blank model
window.
To duplicate any block, click on the block, press ctrl and while keeping it
pressed, drag the block. This would add an identical block. In the current
case, do this twice for the Gain block and once for the Integrator block. This
would add 1 integrator block and 2 gain blocks.
To duplicate any block, click on the block, press ctrl and while keeping it
pressed, drag the block. This would add an identical block. In the current
case, do this twice for the Gain block and once for the Integrator block. This
would add 1 integrator block and 2 gain blocks.
To ip any block select the block and press ctrl+I OR right click on the block
and in the Rotate and Flip tab select Flip Block. Similarly to rotate any
block, press ctrl+R OR right click on the block and in the Rotate and Flip
tab select Clockwise or Counterclockwise. In the current case, ip two Gain
blocks and leave one as it is.
This means that the result of the Sum block is mẍand there are 3 inputs to
the Sum block i.e u(t) , −bẋ , −kx .
To run the simulation, press the run button as highlighted (red color) in the
above gure.
To run the simulation, press the run button as highlighted (red color) in the
above gure.
To observe the position plot, Double Click on the Scope block.
1. Introduction
3. Task
Task 1
Inititial Conditions:
x1 (0) = x2 (0) = ẋ1 (0) = ẋ2 (0) = 0
m1 = m2 = ( 100N
+ 1)kg
k1 = 7.5N m−1
k2 = 35N m−1
N
b = ( 100 + 0.6)N sm−1
Inititial Conditions:
x1 (0) = x2 (0) = ẋ1 (0) = ẋ2 (0) = 0
m1 = m2 = ( 100N
+ 1)kg
k1 = 7.5N m−1
k2 = 35N m−1
N
b = ( 100 + 0.6)N sm−1