SlideShare a Scribd company logo
Introduction to Simulink K. Craig 1
Introduction to Simulink
Physical &
Mathematical
Modeling
Engineering
Measurement
Engineering
Analysis &
Computing
Engineering
Discovery
Physics
Mathematics
SocialScience
Hands-On Minds-On
Technical
Communications
Teamwork Professionalism
Engineering System Investigation Process
Engineering System Design Process
Mechanical
Engineering
Electrical &
Computer
Engineering
Civil &
Environmental
Engineering
Biomedical
Engineering
SelectionofEngineeringMaterials
ProcessestoMakeProducts
Introduction to Simulink K. Craig 2
What is a System?
• A system is an assemblage of components or elements
intended to act together to accomplish an objective.
• The view of a system as a set of interconnected elements is
what has been called the “systems approach” to problem
solving.
• The behavior of a system is specified by its input-output
relation, which is a description – usually mathematical – of
how the output is affected by the input.
• There are two types of systems: static and dynamic.
• Engineering dynamic systems can be small-scale and
large-scale.
Introduction to Simulink K. Craig 3
What is a Block Diagram?
• Block Diagram
– A block diagram of a system is a pictorial
representation of the functions performed by each
component and of the flow of signals. It describes a
set of relationships that hold simultaneously.
– A block diagram contains information concerning
dynamic behavior, but it does not include any
information on the physical construction of the
system.
– Many dissimilar and unrelated systems can be
represented by the same block diagram.
– A block diagram of a given system is not unique.
Introduction to Simulink K. Craig 4
Electro-Pneumatic Transducer:
An Engineering System
Note the three methods of
engineering communication:
picture, schematic, & block
diagram!
Introduction to Simulink K. Craig 5
Temperature Feedback
Control System:
A Larger-Scale
Engineering System
Introduction to Simulink K. Craig 6
What is Simulink?
• Simulink is an extension to MatLab that allows engineers to
rapidly and accurately build computer models of dynamic
physical systems using block diagram notation.
– linear and nonlinear systems
– continuous-time and discrete-time components
– graphical animations are possible
• Previously, a block diagram of the dynamic system
mathematical model was created and then the block
diagram was translated into a programming language.
• In Simulink, the computer program is the block diagram and
this eliminates the risk that the computer program may not
accurately implement the block diagram.
Introduction to Simulink K. Craig 7
Engineering System Investigation Process
Physical
System
System
Measurement
Measurement
Analysis
Physical
Model
Mathematical
Model
Parameter
Identification
Mathematical
Analysis
Comparison:
Predicted vs.
Measured
Design
Changes
Is The
Comparison
Adequate ?
NO
YES
START HERE
Focus
of
Our Attention Here
Simulink uses the
Mathematical Model
represented in Block
Diagram form and
predicts the dynamic
response (solves the
equations) of the
physical model (not
the actual physical
system).
Introduction to Simulink K. Craig 8
F ma
Ma Bv Kx F(t)
Ma Bv Kx F(t)
1
a ( Bv Kx F(t))
M
• Rigid support
• Pure and ideal spring
• Pure and ideal viscous damper
• One degree-of-freedom motion; x direction
• Rigid attached mass
• System is vertical; g acts down in +x direction
Physical System Simplifying Assumptions
Mathematical Model
Introduction to Simulink K. Craig 9
Simulink Block Diagram
1/s means
integration
in Simulink
Gain Block
multiplies the input
by the gain value
To Workspace
Block sends
selected output
to workspace
for plotting,
analysis, etc.
Introduction to Simulink K. Craig 10
• Numerical Integration
– Rectangle Approximation
• Assumes the function has a constant value within each interval
• Break the interval into a number of pieces of equal width, T
• Evaluate the function at x, the start of each piece, i.e., f(x)
• Calculate the area of a rectangle for each piece
– Area = T • f(x)
• Add up the areas of all the rectangles
T
f(x)
Introduction to Simulink K. Craig 11
– Trapezoid Approximation
• Assumes the function may change linearly within each interval
• Break the interval into a number of pieces of equal width, T
• Evaluate the function at x1, the start of each piece, i.e., f(x1)
• Evaluate the function at x2, the end of each piece, i.e., f(x2)
• Calculate the area of a box with a linearly sloping top for each
piece
– Area = T • ½ [f(x1) + f(x2)]
• Add up the areas of all the boxes
f(x1)
f(x2)
T
Introduction to Simulink K. Craig 12
• Inputs to a Dynamic System
– Engineers typically use two inputs to evaluate dynamic
systems: a step input and a sinusoidal input.
– By a step input of any variable, we will always mean a
situation where the system is at rest at time t = 0 and we
instantly change the input quantity, from wherever it was
just before t = 0, by a given amount, either positive or
negative, and then keep the input constant at this new
value forever. This leads to a transient response called
the step response of the system.
– When the input to the system is a sine wave, the steady-
state response of the system, after all the transients have
died away, is called the frequency response of the system.
– These two input types lead to the two views of dynamic
system response: time response and frequency response.
Introduction to Simulink K. Craig 13
Step Response
blue mass is placed on mass
M at t = 0 and left there
Introduction to Simulink K. Craig 14
Why is Simulink Important?
• The potential productivity improvement and cost savings
realized from the block diagram approach to programming
is dramatic.
• There are two principal strategies for Simulink employment.
– Rapid Prototyping
• This is the application of productivity tools to develop
working prototypes in the minimum amount of time.
Here we optimize for development speed, rather than
execution speed or memory use. A hierarchy of
physical models is used in this phase. Physical
system design and control design are optimized
simultaneously.
Introduction to Simulink K. Craig 15
– Rapid Application Development
• Here the final computer program is the Simulink
model or is derived from the Simulink model
through automatic C-code generation.
Introduction to Simulink K. Craig 16
MatLab Desktop
Command WindowCurrent Directory / Workspace
Command History
Simulink Icon
Introduction to Simulink K. Craig 17
Introduction to Simulink K. Craig 18
File → New → Model
Introduction to Simulink K. Craig 19
Simulink Block Diagram Manipulations
Introduction to Simulink K. Craig 20
• Some Simulink Block Diagram Suggestions
– Careful arrangements of blocks and signal lines can
make relationships easier to follow.
– Naming blocks and signal lines and adding
annotations to the model can make the purpose of the
model elements easier to understand.
– The Best Way to ensure that your Simulink Block
Diagram accurately represents your mathematical
model equations is to write your mathematical model
equations directly from the Simulink Block Diagram
and then compare your result to the actual equations.
This will uncover any errors before you start to use
your block diagram to investigate model behavior.
Introduction to Simulink K. Craig 21
F ma
Ma Bv Kx F(t)
dv dx
a v
dt dt
Ma Bv Kx F(t)
1
a ( Bv Kx F(t))
M
Spring-Mass System Mathematical Model
a v v x
a v
v x
Introduction to Simulink K. Craig 22
Initial Conditions
a v v x
Introduction to Simulink K. Craig 23
1
a ( Bv Kx F(t))
M
Introduction to Simulink K. Craig 24
1
a ( Bv Kx F(t))
M
Introduction to Simulink K. Craig 25
1
a ( Bv Kx F(t))
M
Introduction to Simulink K. Craig 26
1
a ( Bv Kx F(t))
M
Introduction to Simulink K. Craig 27
1
a ( Bv Kx F(t))
M
Introduction to Simulink K. Craig 28
1
a ( Bv Kx F(t))
M
Introduction to Simulink K. Craig 29
1
a ( Bv Kx F(t))
M
Introduction to Simulink K. Craig 30
1
a ( Bv Kx F(t))
M
Introduction to Simulink K. Craig 31
Simulation → Configuration Parameters → Solver
Introduction to Simulink K. Craig 32
Simulation → Configuration Parameters → Data Import/Export
Introduction to Simulink K. Craig 33
M-File for Parameters
Start
Simulation
Introduction to Simulink K. Craig 34
Introduction to Simulink K. Craig 35
Introduction to Simulink K. Craig 36

More Related Content

What's hot

MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
محمدعبد الحى
 
Z transfrm ppt
Z transfrm pptZ transfrm ppt
Z transfrm ppt
SWATI MISHRA
 
Simulink Stateflow workshop
 Simulink Stateflow workshop Simulink Stateflow workshop
Simulink Stateflow workshop
MATLABISRAEL
 
Block diagram
Block diagramBlock diagram
Block diagram
Sagar Kuntumal
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
Mahesh Vadhavaniya profmjv
 
simulink
simulinksimulink
simulink
Aditi Tiwari
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processing
Dr. Manjunatha. P
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
James Evangelos
 
TIME DOMAIN ANALYSIS
TIME DOMAIN ANALYSISTIME DOMAIN ANALYSIS
TIME DOMAIN ANALYSIS
Syed Saeed
 
Matlab Basic Tutorial
Matlab Basic TutorialMatlab Basic Tutorial
Matlab Basic Tutorial
Muhammad Rizwan
 
State space models
State space modelsState space models
Lecture 2 transfer-function
Lecture 2 transfer-functionLecture 2 transfer-function
Lecture 2 transfer-function
Saifullah Memon
 
Modern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI SystemsModern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI Systems
Amr E. Mohamed
 
Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20
Ali Rind
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd Esa
Mohd Esa
 
Control systems
Control systems Control systems
Control systems
Dr.YNM
 
Reflection and Transmission coefficients in transmission line
Reflection and Transmission coefficients in transmission lineReflection and Transmission coefficients in transmission line
Reflection and Transmission coefficients in transmission line
RCC Institute of Information Technology
 
Plc seminar abu
Plc seminar    abuPlc seminar    abu
Plc seminar abu
ABUBAKKAR SIDDIKI
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
SARITHA REDDY
 
Signal flow graph
Signal flow graphSignal flow graph
Signal flow graph
Sagar Kuntumal
 

What's hot (20)

MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
 
Z transfrm ppt
Z transfrm pptZ transfrm ppt
Z transfrm ppt
 
Simulink Stateflow workshop
 Simulink Stateflow workshop Simulink Stateflow workshop
Simulink Stateflow workshop
 
Block diagram
Block diagramBlock diagram
Block diagram
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
 
simulink
simulinksimulink
simulink
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processing
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 
TIME DOMAIN ANALYSIS
TIME DOMAIN ANALYSISTIME DOMAIN ANALYSIS
TIME DOMAIN ANALYSIS
 
Matlab Basic Tutorial
Matlab Basic TutorialMatlab Basic Tutorial
Matlab Basic Tutorial
 
State space models
State space modelsState space models
State space models
 
Lecture 2 transfer-function
Lecture 2 transfer-functionLecture 2 transfer-function
Lecture 2 transfer-function
 
Modern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI SystemsModern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI Systems
 
Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20
 
Matlab-free course by Mohd Esa
Matlab-free course by Mohd EsaMatlab-free course by Mohd Esa
Matlab-free course by Mohd Esa
 
Control systems
Control systems Control systems
Control systems
 
Reflection and Transmission coefficients in transmission line
Reflection and Transmission coefficients in transmission lineReflection and Transmission coefficients in transmission line
Reflection and Transmission coefficients in transmission line
 
Plc seminar abu
Plc seminar    abuPlc seminar    abu
Plc seminar abu
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Signal flow graph
Signal flow graphSignal flow graph
Signal flow graph
 

Viewers also liked

Simulink - Introduction with Practical Example
Simulink - Introduction with Practical ExampleSimulink - Introduction with Practical Example
Simulink - Introduction with Practical Example
Kamran Gillani
 
Matlab lecture
Matlab lectureMatlab lecture
Matlab lecture
Yatendra Vashishtha
 
131010 jim cordy - submodel pattern extraction for simulink models
131010   jim cordy - submodel pattern extraction for simulink models131010   jim cordy - submodel pattern extraction for simulink models
131010 jim cordy - submodel pattern extraction for simulink models
Ptidej Team
 
A presentation on suspension using simulink
A presentation on suspension using simulinkA presentation on suspension using simulink
A presentation on suspension using simulink
IMTH0
 
Simple Pendulum and Mass-Spring System in SHM
Simple Pendulum and Mass-Spring System in SHMSimple Pendulum and Mass-Spring System in SHM
Simple Pendulum and Mass-Spring System in SHM
Diane Infante
 
Matlab
MatlabMatlab
Matlab
sandhya jois
 
Simple pendulum
Simple pendulumSimple pendulum
The simple pendulum
The simple pendulumThe simple pendulum
The simple pendulum
vn24
 
The simple pendulum (using O.D.E)
The simple pendulum (using O.D.E)The simple pendulum (using O.D.E)
The simple pendulum (using O.D.E)
darshan231995
 
Signals and systems with matlab applications orchard publications
Signals and systems with matlab applications   orchard publicationsSignals and systems with matlab applications   orchard publications
Signals and systems with matlab applications orchard publications
Muhammad Salah
 
PROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERSPROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERS
RAHUL DESHMUKH
 
Matlab for Electrical Engineers
Matlab for Electrical EngineersMatlab for Electrical Engineers
Matlab for Electrical Engineers
Manish Joshi
 
Forelasning4
Forelasning4Forelasning4
Forelasning4
Memo Love
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
Amr Rashed
 
ADVANCED WORKSHOP IN MATLAB
ADVANCED WORKSHOP IN MATLABADVANCED WORKSHOP IN MATLAB
ADVANCED WORKSHOP IN MATLAB
Saeed J. Almalowi,PhD
 

Viewers also liked (15)

Simulink - Introduction with Practical Example
Simulink - Introduction with Practical ExampleSimulink - Introduction with Practical Example
Simulink - Introduction with Practical Example
 
Matlab lecture
Matlab lectureMatlab lecture
Matlab lecture
 
131010 jim cordy - submodel pattern extraction for simulink models
131010   jim cordy - submodel pattern extraction for simulink models131010   jim cordy - submodel pattern extraction for simulink models
131010 jim cordy - submodel pattern extraction for simulink models
 
A presentation on suspension using simulink
A presentation on suspension using simulinkA presentation on suspension using simulink
A presentation on suspension using simulink
 
Simple Pendulum and Mass-Spring System in SHM
Simple Pendulum and Mass-Spring System in SHMSimple Pendulum and Mass-Spring System in SHM
Simple Pendulum and Mass-Spring System in SHM
 
Matlab
MatlabMatlab
Matlab
 
Simple pendulum
Simple pendulumSimple pendulum
Simple pendulum
 
The simple pendulum
The simple pendulumThe simple pendulum
The simple pendulum
 
The simple pendulum (using O.D.E)
The simple pendulum (using O.D.E)The simple pendulum (using O.D.E)
The simple pendulum (using O.D.E)
 
Signals and systems with matlab applications orchard publications
Signals and systems with matlab applications   orchard publicationsSignals and systems with matlab applications   orchard publications
Signals and systems with matlab applications orchard publications
 
PROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERSPROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERS
 
Matlab for Electrical Engineers
Matlab for Electrical EngineersMatlab for Electrical Engineers
Matlab for Electrical Engineers
 
Forelasning4
Forelasning4Forelasning4
Forelasning4
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
 
ADVANCED WORKSHOP IN MATLAB
ADVANCED WORKSHOP IN MATLABADVANCED WORKSHOP IN MATLAB
ADVANCED WORKSHOP IN MATLAB
 

Similar to Introduction to simulink (1)

Simulink Presentation.ppt
Simulink Presentation.pptSimulink Presentation.ppt
Simulink Presentation.ppt
hodeeeeee1
 
Lab03
Lab03Lab03
Simulink 1.pdf
Simulink 1.pdfSimulink 1.pdf
Simulink 1.pdf
ssuser1dfd371
 
LCE-UNIT 2 PPT.pdf
LCE-UNIT 2 PPT.pdfLCE-UNIT 2 PPT.pdf
LCE-UNIT 2 PPT.pdf
HODECE21
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond Brunkow
 
Project seminar ppt_steelcasting
Project seminar ppt_steelcastingProject seminar ppt_steelcasting
Project seminar ppt_steelcasting
Rudra Narayan Paul
 
4413-lecture-09 Introduction Matlab lecture .ppt
4413-lecture-09 Introduction Matlab lecture .ppt4413-lecture-09 Introduction Matlab lecture .ppt
4413-lecture-09 Introduction Matlab lecture .ppt
aaaaboud1
 
ESDL Research Overview
ESDL Research OverviewESDL Research Overview
ESDL Research Overview
ESDL_Illinois
 
Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record
Yuvraj Singh
 
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
shivamverma394
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
Arshit Rai
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
Arshit Rai
 
Final Project Report
Final Project ReportFinal Project Report
Final Project Report
Riddhi Shah
 
control_5.pptx
control_5.pptxcontrol_5.pptx
control_5.pptx
ewnetukassa2
 
s1233587_Report
s1233587_Reports1233587_Report
s1233587_Report
Ralica Bencheva
 
E0463137
E0463137E0463137
E0463137
IOSR Journals
 
A calculus of mobile Real-Time processes
A calculus of mobile Real-Time processesA calculus of mobile Real-Time processes
A calculus of mobile Real-Time processes
Polytechnique Montréal
 
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdfsolve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
arihantcomputersddn
 
Control system introduction for different application
Control system introduction for different applicationControl system introduction for different application
Control system introduction for different application
AnoopCadlord1
 
Microelectromechanical Assignment Help.com_Microelectromechanical Assignment ...
Microelectromechanical Assignment Help.com_Microelectromechanical Assignment ...Microelectromechanical Assignment Help.com_Microelectromechanical Assignment ...
Microelectromechanical Assignment Help.com_Microelectromechanical Assignment ...
Mechanical Engineering Assignment Help
 

Similar to Introduction to simulink (1) (20)

Simulink Presentation.ppt
Simulink Presentation.pptSimulink Presentation.ppt
Simulink Presentation.ppt
 
Lab03
Lab03Lab03
Lab03
 
Simulink 1.pdf
Simulink 1.pdfSimulink 1.pdf
Simulink 1.pdf
 
LCE-UNIT 2 PPT.pdf
LCE-UNIT 2 PPT.pdfLCE-UNIT 2 PPT.pdf
LCE-UNIT 2 PPT.pdf
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
 
Project seminar ppt_steelcasting
Project seminar ppt_steelcastingProject seminar ppt_steelcasting
Project seminar ppt_steelcasting
 
4413-lecture-09 Introduction Matlab lecture .ppt
4413-lecture-09 Introduction Matlab lecture .ppt4413-lecture-09 Introduction Matlab lecture .ppt
4413-lecture-09 Introduction Matlab lecture .ppt
 
ESDL Research Overview
ESDL Research OverviewESDL Research Overview
ESDL Research Overview
 
Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record
 
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
 
Final Project Report
Final Project ReportFinal Project Report
Final Project Report
 
control_5.pptx
control_5.pptxcontrol_5.pptx
control_5.pptx
 
s1233587_Report
s1233587_Reports1233587_Report
s1233587_Report
 
E0463137
E0463137E0463137
E0463137
 
A calculus of mobile Real-Time processes
A calculus of mobile Real-Time processesA calculus of mobile Real-Time processes
A calculus of mobile Real-Time processes
 
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdfsolve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
solve 6 , quiz 2link of book httpwww.irccyn.ec-nantes.fr~mart.pdf
 
Control system introduction for different application
Control system introduction for different applicationControl system introduction for different application
Control system introduction for different application
 
Microelectromechanical Assignment Help.com_Microelectromechanical Assignment ...
Microelectromechanical Assignment Help.com_Microelectromechanical Assignment ...Microelectromechanical Assignment Help.com_Microelectromechanical Assignment ...
Microelectromechanical Assignment Help.com_Microelectromechanical Assignment ...
 

Recently uploaded

Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...
IJECEIAES
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
Data Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptxData Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptx
ramrag33
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
gowrishankartb2005
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
LAXMAREDDY22
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
integral complex analysis chapter 06 .pdf
integral complex analysis chapter 06 .pdfintegral complex analysis chapter 06 .pdf
integral complex analysis chapter 06 .pdf
gaafergoudaay7aga
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
RamonNovais6
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
Prakhyath Rai
 

Recently uploaded (20)

Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
Data Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptxData Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptx
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
integral complex analysis chapter 06 .pdf
integral complex analysis chapter 06 .pdfintegral complex analysis chapter 06 .pdf
integral complex analysis chapter 06 .pdf
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
 

Introduction to simulink (1)

  • 1. Introduction to Simulink K. Craig 1 Introduction to Simulink Physical & Mathematical Modeling Engineering Measurement Engineering Analysis & Computing Engineering Discovery Physics Mathematics SocialScience Hands-On Minds-On Technical Communications Teamwork Professionalism Engineering System Investigation Process Engineering System Design Process Mechanical Engineering Electrical & Computer Engineering Civil & Environmental Engineering Biomedical Engineering SelectionofEngineeringMaterials ProcessestoMakeProducts
  • 2. Introduction to Simulink K. Craig 2 What is a System? • A system is an assemblage of components or elements intended to act together to accomplish an objective. • The view of a system as a set of interconnected elements is what has been called the “systems approach” to problem solving. • The behavior of a system is specified by its input-output relation, which is a description – usually mathematical – of how the output is affected by the input. • There are two types of systems: static and dynamic. • Engineering dynamic systems can be small-scale and large-scale.
  • 3. Introduction to Simulink K. Craig 3 What is a Block Diagram? • Block Diagram – A block diagram of a system is a pictorial representation of the functions performed by each component and of the flow of signals. It describes a set of relationships that hold simultaneously. – A block diagram contains information concerning dynamic behavior, but it does not include any information on the physical construction of the system. – Many dissimilar and unrelated systems can be represented by the same block diagram. – A block diagram of a given system is not unique.
  • 4. Introduction to Simulink K. Craig 4 Electro-Pneumatic Transducer: An Engineering System Note the three methods of engineering communication: picture, schematic, & block diagram!
  • 5. Introduction to Simulink K. Craig 5 Temperature Feedback Control System: A Larger-Scale Engineering System
  • 6. Introduction to Simulink K. Craig 6 What is Simulink? • Simulink is an extension to MatLab that allows engineers to rapidly and accurately build computer models of dynamic physical systems using block diagram notation. – linear and nonlinear systems – continuous-time and discrete-time components – graphical animations are possible • Previously, a block diagram of the dynamic system mathematical model was created and then the block diagram was translated into a programming language. • In Simulink, the computer program is the block diagram and this eliminates the risk that the computer program may not accurately implement the block diagram.
  • 7. Introduction to Simulink K. Craig 7 Engineering System Investigation Process Physical System System Measurement Measurement Analysis Physical Model Mathematical Model Parameter Identification Mathematical Analysis Comparison: Predicted vs. Measured Design Changes Is The Comparison Adequate ? NO YES START HERE Focus of Our Attention Here Simulink uses the Mathematical Model represented in Block Diagram form and predicts the dynamic response (solves the equations) of the physical model (not the actual physical system).
  • 8. Introduction to Simulink K. Craig 8 F ma Ma Bv Kx F(t) Ma Bv Kx F(t) 1 a ( Bv Kx F(t)) M • Rigid support • Pure and ideal spring • Pure and ideal viscous damper • One degree-of-freedom motion; x direction • Rigid attached mass • System is vertical; g acts down in +x direction Physical System Simplifying Assumptions Mathematical Model
  • 9. Introduction to Simulink K. Craig 9 Simulink Block Diagram 1/s means integration in Simulink Gain Block multiplies the input by the gain value To Workspace Block sends selected output to workspace for plotting, analysis, etc.
  • 10. Introduction to Simulink K. Craig 10 • Numerical Integration – Rectangle Approximation • Assumes the function has a constant value within each interval • Break the interval into a number of pieces of equal width, T • Evaluate the function at x, the start of each piece, i.e., f(x) • Calculate the area of a rectangle for each piece – Area = T • f(x) • Add up the areas of all the rectangles T f(x)
  • 11. Introduction to Simulink K. Craig 11 – Trapezoid Approximation • Assumes the function may change linearly within each interval • Break the interval into a number of pieces of equal width, T • Evaluate the function at x1, the start of each piece, i.e., f(x1) • Evaluate the function at x2, the end of each piece, i.e., f(x2) • Calculate the area of a box with a linearly sloping top for each piece – Area = T • ½ [f(x1) + f(x2)] • Add up the areas of all the boxes f(x1) f(x2) T
  • 12. Introduction to Simulink K. Craig 12 • Inputs to a Dynamic System – Engineers typically use two inputs to evaluate dynamic systems: a step input and a sinusoidal input. – By a step input of any variable, we will always mean a situation where the system is at rest at time t = 0 and we instantly change the input quantity, from wherever it was just before t = 0, by a given amount, either positive or negative, and then keep the input constant at this new value forever. This leads to a transient response called the step response of the system. – When the input to the system is a sine wave, the steady- state response of the system, after all the transients have died away, is called the frequency response of the system. – These two input types lead to the two views of dynamic system response: time response and frequency response.
  • 13. Introduction to Simulink K. Craig 13 Step Response blue mass is placed on mass M at t = 0 and left there
  • 14. Introduction to Simulink K. Craig 14 Why is Simulink Important? • The potential productivity improvement and cost savings realized from the block diagram approach to programming is dramatic. • There are two principal strategies for Simulink employment. – Rapid Prototyping • This is the application of productivity tools to develop working prototypes in the minimum amount of time. Here we optimize for development speed, rather than execution speed or memory use. A hierarchy of physical models is used in this phase. Physical system design and control design are optimized simultaneously.
  • 15. Introduction to Simulink K. Craig 15 – Rapid Application Development • Here the final computer program is the Simulink model or is derived from the Simulink model through automatic C-code generation.
  • 16. Introduction to Simulink K. Craig 16 MatLab Desktop Command WindowCurrent Directory / Workspace Command History Simulink Icon
  • 18. Introduction to Simulink K. Craig 18 File → New → Model
  • 19. Introduction to Simulink K. Craig 19 Simulink Block Diagram Manipulations
  • 20. Introduction to Simulink K. Craig 20 • Some Simulink Block Diagram Suggestions – Careful arrangements of blocks and signal lines can make relationships easier to follow. – Naming blocks and signal lines and adding annotations to the model can make the purpose of the model elements easier to understand. – The Best Way to ensure that your Simulink Block Diagram accurately represents your mathematical model equations is to write your mathematical model equations directly from the Simulink Block Diagram and then compare your result to the actual equations. This will uncover any errors before you start to use your block diagram to investigate model behavior.
  • 21. Introduction to Simulink K. Craig 21 F ma Ma Bv Kx F(t) dv dx a v dt dt Ma Bv Kx F(t) 1 a ( Bv Kx F(t)) M Spring-Mass System Mathematical Model a v v x a v v x
  • 22. Introduction to Simulink K. Craig 22 Initial Conditions a v v x
  • 23. Introduction to Simulink K. Craig 23 1 a ( Bv Kx F(t)) M
  • 24. Introduction to Simulink K. Craig 24 1 a ( Bv Kx F(t)) M
  • 25. Introduction to Simulink K. Craig 25 1 a ( Bv Kx F(t)) M
  • 26. Introduction to Simulink K. Craig 26 1 a ( Bv Kx F(t)) M
  • 27. Introduction to Simulink K. Craig 27 1 a ( Bv Kx F(t)) M
  • 28. Introduction to Simulink K. Craig 28 1 a ( Bv Kx F(t)) M
  • 29. Introduction to Simulink K. Craig 29 1 a ( Bv Kx F(t)) M
  • 30. Introduction to Simulink K. Craig 30 1 a ( Bv Kx F(t)) M
  • 31. Introduction to Simulink K. Craig 31 Simulation → Configuration Parameters → Solver
  • 32. Introduction to Simulink K. Craig 32 Simulation → Configuration Parameters → Data Import/Export
  • 33. Introduction to Simulink K. Craig 33 M-File for Parameters Start Simulation