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
Ad

More Related Content

What's hot (20)

Nonlinear systems
Nonlinear systemsNonlinear systems
Nonlinear systems
Srinath Thamban
 
Synthesis network
Synthesis networkSynthesis network
Synthesis network
krishna0024
 
Fsm sequence detector
Fsm sequence detector Fsm sequence detector
Fsm sequence detector
lpvasam
 
inverse z-transform ppt
inverse z-transform pptinverse z-transform ppt
inverse z-transform ppt
mihir jain
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
Amr E. Mohamed
 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems
Zlatan Ahmadovic
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
Ashish Meshram
 
Types of nonlinearities
Types of nonlinearitiesTypes of nonlinearities
Types of nonlinearities
nida unapprochablestair
 
Signals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 BatchSignals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 Batch
Amairullah Khan Lodhi
 
Z Transform
Z TransformZ Transform
Z Transform
Darshan Bhatt
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
Self-employed
 
Question Bank Programmable Logic Controller
Question Bank Programmable Logic ControllerQuestion Bank Programmable Logic Controller
Question Bank Programmable Logic Controller
Nilesh Bhaskarrao Bahadure
 
Lag lead compensator design in frequency domain 7th lecture
Lag lead compensator design in frequency domain  7th lectureLag lead compensator design in frequency domain  7th lecture
Lag lead compensator design in frequency domain 7th lecture
Khalaf Gaeid Alshammery
 
Chapter 3 mathematical modeling of dynamic system
Chapter 3 mathematical modeling of dynamic systemChapter 3 mathematical modeling of dynamic system
Chapter 3 mathematical modeling of dynamic system
LenchoDuguma
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
DrSonali Vyas
 
MATLAB INTRODUCTION
MATLAB INTRODUCTIONMATLAB INTRODUCTION
MATLAB INTRODUCTION
Dr. Krishna Mohbey
 
Electrical analogous of mechanical translational system
Electrical analogous of mechanical translational systemElectrical analogous of mechanical translational system
Electrical analogous of mechanical translational system
KALPANA K
 
Transmission Line Basics
Transmission Line BasicsTransmission Line Basics
Transmission Line Basics
John Williams
 
Multiplexers
MultiplexersMultiplexers
Multiplexers
DrSonali Vyas
 
Lecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical ModelingLecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical Modeling
Leonides De Ocampo
 
Synthesis network
Synthesis networkSynthesis network
Synthesis network
krishna0024
 
Fsm sequence detector
Fsm sequence detector Fsm sequence detector
Fsm sequence detector
lpvasam
 
inverse z-transform ppt
inverse z-transform pptinverse z-transform ppt
inverse z-transform ppt
mihir jain
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
Amr E. Mohamed
 
discrete time signals and systems
 discrete time signals and systems  discrete time signals and systems
discrete time signals and systems
Zlatan Ahmadovic
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
Ashish Meshram
 
Signals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 BatchSignals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 Batch
Amairullah Khan Lodhi
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
Self-employed
 
Lag lead compensator design in frequency domain 7th lecture
Lag lead compensator design in frequency domain  7th lectureLag lead compensator design in frequency domain  7th lecture
Lag lead compensator design in frequency domain 7th lecture
Khalaf Gaeid Alshammery
 
Chapter 3 mathematical modeling of dynamic system
Chapter 3 mathematical modeling of dynamic systemChapter 3 mathematical modeling of dynamic system
Chapter 3 mathematical modeling of dynamic system
LenchoDuguma
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
DrSonali Vyas
 
Electrical analogous of mechanical translational system
Electrical analogous of mechanical translational systemElectrical analogous of mechanical translational system
Electrical analogous of mechanical translational system
KALPANA K
 
Transmission Line Basics
Transmission Line BasicsTransmission Line Basics
Transmission Line Basics
John Williams
 
Lecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical ModelingLecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical Modeling
Leonides De Ocampo
 

Viewers also liked (15)

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
Simple pendulum
Aditya Abeysinghe Presentations
 
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
 
Simulink - Introduction with Practical Example
Simulink - Introduction with Practical ExampleSimulink - Introduction with Practical Example
Simulink - Introduction with Practical Example
Kamran Gillani
 
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
 
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
 
Ad

Similar to Introduction to simulink (1) (20)

Simulink Presentation.ppt
Simulink Presentation.pptSimulink Presentation.ppt
Simulink Presentation.ppt
hodeeeeee1
 
Lab03
Lab03Lab03
Lab03
Ibrahim Badway
 
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
larbaoui
 
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
 
Simulink Presentation.ppt
Simulink Presentation.pptSimulink Presentation.ppt
Simulink Presentation.ppt
hodeeeeee1
 
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
 
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
larbaoui
 
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
 
Ad

Recently uploaded (20)

DED KOMINFO detail engginering design gedung
DED KOMINFO detail engginering design gedungDED KOMINFO detail engginering design gedung
DED KOMINFO detail engginering design gedung
nabilarizqifadhilah1
 
Using the Artificial Neural Network to Predict the Axial Strength and Strain ...
Using the Artificial Neural Network to Predict the Axial Strength and Strain ...Using the Artificial Neural Network to Predict the Axial Strength and Strain ...
Using the Artificial Neural Network to Predict the Axial Strength and Strain ...
Journal of Soft Computing in Civil Engineering
 
Automatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and BeyondAutomatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and Beyond
NU_I_TODALAB
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdfDavid Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry
 
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic AlgorithmDesign Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Journal of Soft Computing in Civil Engineering
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...
Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...
Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...
Journal of Soft Computing in Civil Engineering
 
hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .
NABLAS株式会社
 
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdfML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
rameshwarchintamani
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
introduction technology technology tec.pptx
introduction technology technology tec.pptxintroduction technology technology tec.pptx
introduction technology technology tec.pptx
Iftikhar70
 
Working with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to ImplementationWorking with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to Implementation
Alabama Transportation Assistance Program
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning ModelsMode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Journal of Soft Computing in Civil Engineering
 
Modelling of Concrete Compressive Strength Admixed with GGBFS Using Gene Expr...
Modelling of Concrete Compressive Strength Admixed with GGBFS Using Gene Expr...Modelling of Concrete Compressive Strength Admixed with GGBFS Using Gene Expr...
Modelling of Concrete Compressive Strength Admixed with GGBFS Using Gene Expr...
Journal of Soft Computing in Civil Engineering
 
Nanometer Metal-Organic-Framework Literature Comparison
Nanometer Metal-Organic-Framework  Literature ComparisonNanometer Metal-Organic-Framework  Literature Comparison
Nanometer Metal-Organic-Framework Literature Comparison
Chris Harding
 
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjjseninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
AjijahamadKhaji
 
Artificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptxArtificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptx
rakshanatarajan005
 
DED KOMINFO detail engginering design gedung
DED KOMINFO detail engginering design gedungDED KOMINFO detail engginering design gedung
DED KOMINFO detail engginering design gedung
nabilarizqifadhilah1
 
Automatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and BeyondAutomatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and Beyond
NU_I_TODALAB
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdfDavid Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .
NABLAS株式会社
 
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdfML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
rameshwarchintamani
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
introduction technology technology tec.pptx
introduction technology technology tec.pptxintroduction technology technology tec.pptx
introduction technology technology tec.pptx
Iftikhar70
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
Nanometer Metal-Organic-Framework Literature Comparison
Nanometer Metal-Organic-Framework  Literature ComparisonNanometer Metal-Organic-Framework  Literature Comparison
Nanometer Metal-Organic-Framework Literature Comparison
Chris Harding
 
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjjseninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
seninarppt.pptx1bhjiikjhggghjykoirgjuyhhhjj
AjijahamadKhaji
 
Artificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptxArtificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptx
rakshanatarajan005
 

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
  翻译: