SlideShare a Scribd company logo
2
Most read
5
Most read
8
Most read
Simulink Modelling The Basics
What is Simulink? Simulink is a graphical extension to MATLAB for the modeling and simulation of systems.  In Simulink, systems are drawn on screen as  Block diagrams . Many elements of block diagrams are available (such as transfer functions, summing junctions, etc.), as well as virtual input devices (such as function generators) and output devices (such as oscilloscopes).  Simulink is integrated with MATLAB and data can be easily transferred between the programs. In this tutorial, we will introduce the basics of using Simulink to model and simulate a system.
Starting Simulink To start Simulink, you must first start MATLAB -  Click the Simulink icon on the MATLAB toolbar   Enter  simulink  at the MATLAB prompt. This opens the Simulink Library Browser.
 
Basic Elements There are two major classes of elements in Simulink:  blocks  and  lines . Blocks are used to generate, modify, combine, output, and display signals. Lines are used to transfer signals from one block to another.
Blocks Continuous :  Linear, continuous-time system elements (integrators, transfer functions, state-space models, etc.)  Discrete :  Linear, discrete-time system elements (integrators, transfer functions, state-space models, etc.)  Functions & Tables :  User-defined functions and tables for interpolating function values  Math :  Mathematical operators (sum, gain, dot product, etc.)  Nonlinear :  Nonlinear operators (coulomb/viscous friction, switches, relays, etc.)  Signals & Systems :  Blocks for controlling/monitoring signals and for creating subsystems  Sinks :  Used to output or display signals (displays, scopes, graphs, etc.)  Sources : Used to generate various signals (step, ramp, sinusoidal, etc.)
Lines Lines transmit signals in the direction indicated by the arrow. Lines must always transmit signals from the output terminal of one block to the input terminal of another block.  Lines can never inject a signal  into  another line; lines must be combined through the use of a block such as a summing junction.
Modelling - Example
This model will consist of three blocks:  Sine Wave, Gain, and Scope.   The Sine Wave is a  Source Block  from which a sinusoidal input signal originates.  This signal is transferred through a  line  in the direction indicated by the arrow to the Gain  Math Block .   The Gain block modifies its input signal (multiplies it by a constant value) and outputs a new signal through a  line  to the Scope block.  The Scope is a  Sink Block  used to display a signal (much like an oscilloscope).
Creating a Block Diagram Building the system model is then accomplished through a series of steps:  The necessary blocks are gathered from the Library Browser and placed in the model window.  The parameters of the blocks are then modified to correspond with the system we are modeling.  Finally, the blocks are connected with lines to complete the model.
Modifying the Blocks Simulink allows us to modify the blocks in our model so that they accurately reflect the characteristics of the system we are analyzing.  For example, we can modify the Sine Wave block by double-clicking on it.  Doing so will cause the following window to appear:
Running Simulations To do this, go to the  Simulation  menu and click on  Start , or just click on the "Start/Pause Simulation" button in the model window toolbar.  For a relatively simple model, its simulation runs almost instantaneously.  With more complicated systems, however, you will be able to see the progress of the simulation by observing its running time in the lower box of the model window.  Double-click the Scope block to view the output of the Gain block for the simulation as a function of time.
Simulation of Mechanical Systems

More Related Content

PPTX
Matlab simulink introduction
PPTX
Block Diagram For Control Systems.
PPTX
PPT KONTRAK BELAJAR.pptx
PDF
An Introduction to Macrocells & Small Cells
PPTX
Password craking techniques
PPTX
Shunt active power filter
PPTX
QMS Awareness.pptx
PDF
Power Quality Standards
Matlab simulink introduction
Block Diagram For Control Systems.
PPT KONTRAK BELAJAR.pptx
An Introduction to Macrocells & Small Cells
Password craking techniques
Shunt active power filter
QMS Awareness.pptx
Power Quality Standards

What's hot (20)

PDF
Simulink Stateflow workshop
PPT
Simulink Presentation.ppt
PPT
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
PPTX
PPT
MATLAB/SIMULINK for engineering applications: day 3
PDF
Introduction to simulink (1)
PPTX
ATPG flow chart
PPTX
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
DOCX
Hardware-Software Codesign
PPTX
PLC Architecture
PPT
PDF
Smart traffic light controller using verilog
PPTX
Lcd interfaing using 8051 and assambly language programming
PDF
Arm Processor Based Speed Control Of BLDC Motor
PPTX
Addressing modes of 8051
PDF
PPTX
I/O port programming in 8051
PPT
Chapter 1 introduction to automation
PPTX
PLC ARCHITECTURE AND HARDWARE COMPONENTS
Simulink Stateflow workshop
Simulink Presentation.ppt
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for engineering applications: day 3
Introduction to simulink (1)
ATPG flow chart
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
Hardware-Software Codesign
PLC Architecture
Smart traffic light controller using verilog
Lcd interfaing using 8051 and assambly language programming
Arm Processor Based Speed Control Of BLDC Motor
Addressing modes of 8051
I/O port programming in 8051
Chapter 1 introduction to automation
PLC ARCHITECTURE AND HARDWARE COMPONENTS
Ad

Similar to Simulink (20)

PDF
Simulink
DOCX
simulink
PPTX
10_Matlab Simulink for Electrical Engineering.pptx
PPTX
Elementary MATLAB & SIMULINK A Demonstration
PPTX
Elementary MATLAB & SIMULINK A demonstration
PDF
PDF
M3M_250327ggggt_224420_250411_183353.pdf
DOCX
Pengenalan Simulink
PDF
Matlab simulink
PPT
Control chap9
PPTX
matlab basics and Simulink for beginners
PDF
Using matlab simulink
PDF
Using matlab simulink
PDF
E0463137
PDF
Xcos for very beginners
PDF
Simulink 1.pdf
PPTX
Working with Simulink
PDF
Matlab simulink simulink modeling tutorial - train system
PDF
Summer training matlab
DOC
Advance communication system manual
Simulink
simulink
10_Matlab Simulink for Electrical Engineering.pptx
Elementary MATLAB & SIMULINK A Demonstration
Elementary MATLAB & SIMULINK A demonstration
M3M_250327ggggt_224420_250411_183353.pdf
Pengenalan Simulink
Matlab simulink
Control chap9
matlab basics and Simulink for beginners
Using matlab simulink
Using matlab simulink
E0463137
Xcos for very beginners
Simulink 1.pdf
Working with Simulink
Matlab simulink simulink modeling tutorial - train system
Summer training matlab
Advance communication system manual
Ad

More from Kelin Jose (6)

PDF
MechMerize
PDF
Matlab
PPT
Matlab II
PDF
Inventor1
PPT
Interview
PPT
Seminar on Foreign Training
MechMerize
Matlab
Matlab II
Inventor1
Interview
Seminar on Foreign Training

Recently uploaded (20)

PPTX
Virtual and Augmented Reality in Current Scenario
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Introduction to pro and eukaryotes and differences.pptx
PPTX
Introduction to Building Materials
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
1_English_Language_Set_2.pdf probationary
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Hazard Identification & Risk Assessment .pdf
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
History, Philosophy and sociology of education (1).pptx
Virtual and Augmented Reality in Current Scenario
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Introduction to pro and eukaryotes and differences.pptx
Introduction to Building Materials
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Computing-Curriculum for Schools in Ghana
FORM 1 BIOLOGY MIND MAPS and their schemes
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
1_English_Language_Set_2.pdf probationary
B.Sc. DS Unit 2 Software Engineering.pptx
LDMMIA Reiki Yoga Finals Review Spring Summer
Unit 4 Computer Architecture Multicore Processor.pptx
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Chinmaya Tiranga quiz Grand Finale.pdf
Hazard Identification & Risk Assessment .pdf
My India Quiz Book_20210205121199924.pdf
History, Philosophy and sociology of education (1).pptx

Simulink

  • 2. What is Simulink? Simulink is a graphical extension to MATLAB for the modeling and simulation of systems. In Simulink, systems are drawn on screen as Block diagrams . Many elements of block diagrams are available (such as transfer functions, summing junctions, etc.), as well as virtual input devices (such as function generators) and output devices (such as oscilloscopes). Simulink is integrated with MATLAB and data can be easily transferred between the programs. In this tutorial, we will introduce the basics of using Simulink to model and simulate a system.
  • 3. Starting Simulink To start Simulink, you must first start MATLAB - Click the Simulink icon on the MATLAB toolbar Enter simulink at the MATLAB prompt. This opens the Simulink Library Browser.
  • 4.  
  • 5. Basic Elements There are two major classes of elements in Simulink: blocks and lines . Blocks are used to generate, modify, combine, output, and display signals. Lines are used to transfer signals from one block to another.
  • 6. Blocks Continuous :  Linear, continuous-time system elements (integrators, transfer functions, state-space models, etc.) Discrete :  Linear, discrete-time system elements (integrators, transfer functions, state-space models, etc.) Functions & Tables :  User-defined functions and tables for interpolating function values Math :  Mathematical operators (sum, gain, dot product, etc.) Nonlinear :  Nonlinear operators (coulomb/viscous friction, switches, relays, etc.) Signals & Systems :  Blocks for controlling/monitoring signals and for creating subsystems Sinks :  Used to output or display signals (displays, scopes, graphs, etc.) Sources : Used to generate various signals (step, ramp, sinusoidal, etc.)
  • 7. Lines Lines transmit signals in the direction indicated by the arrow. Lines must always transmit signals from the output terminal of one block to the input terminal of another block. Lines can never inject a signal into another line; lines must be combined through the use of a block such as a summing junction.
  • 9. This model will consist of three blocks:  Sine Wave, Gain, and Scope.  The Sine Wave is a Source Block from which a sinusoidal input signal originates.  This signal is transferred through a line in the direction indicated by the arrow to the Gain Math Block .  The Gain block modifies its input signal (multiplies it by a constant value) and outputs a new signal through a line to the Scope block.  The Scope is a Sink Block used to display a signal (much like an oscilloscope).
  • 10. Creating a Block Diagram Building the system model is then accomplished through a series of steps: The necessary blocks are gathered from the Library Browser and placed in the model window. The parameters of the blocks are then modified to correspond with the system we are modeling. Finally, the blocks are connected with lines to complete the model.
  • 11. Modifying the Blocks Simulink allows us to modify the blocks in our model so that they accurately reflect the characteristics of the system we are analyzing.  For example, we can modify the Sine Wave block by double-clicking on it.  Doing so will cause the following window to appear:
  • 12. Running Simulations To do this, go to the Simulation menu and click on Start , or just click on the "Start/Pause Simulation" button in the model window toolbar.  For a relatively simple model, its simulation runs almost instantaneously.  With more complicated systems, however, you will be able to see the progress of the simulation by observing its running time in the lower box of the model window.  Double-click the Scope block to view the output of the Gain block for the simulation as a function of time.