SlideShare une entreprise Scribd logo
1  sur  36
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

power flow and optimal power flow
power flow and optimal power flowpower flow and optimal power flow
power flow and optimal power flowAhmed M. Elkholy
 
Importance of matlab
Importance of matlabImportance of matlab
Importance of matlabkrajeshk1980
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersMurshida ck
 
Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4Randa Elanwar
 
Simulink Stateflow workshop
 Simulink Stateflow workshop Simulink Stateflow workshop
Simulink Stateflow workshopMATLABISRAEL
 
Modern power system planning new
Modern power system planning newModern power system planning new
Modern power system planning newBayu imadul Bilad
 
Basic matlab and matrix
Basic matlab and matrixBasic matlab and matrix
Basic matlab and matrixSaidur Rahman
 
POWER SYSTEM PROTECTION
POWER SYSTEM PROTECTION POWER SYSTEM PROTECTION
POWER SYSTEM PROTECTION moiz89
 
Lab manual for Basic electrical and electronics engineering for first year
Lab manual for Basic electrical and electronics engineering for first yearLab manual for Basic electrical and electronics engineering for first year
Lab manual for Basic electrical and electronics engineering for first yearOmkar Rane
 
Control system lectures
Control system lectures Control system lectures
Control system lectures Naqqash Sajid
 
MATLAB Basics-Part1
MATLAB Basics-Part1MATLAB Basics-Part1
MATLAB Basics-Part1Elaf A.Saeed
 
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-20Ali Rind
 
PSPICE tutorial: Zener diodes & editing parts
PSPICE tutorial: Zener diodes & editing partsPSPICE tutorial: Zener diodes & editing parts
PSPICE tutorial: Zener diodes & editing partsTsuyoshi Horigome
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabBilawalBaloch1
 
The admittance model and network calculation
The admittance model and network calculationThe admittance model and network calculation
The admittance model and network calculationBalaram Das
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingDr. Manjunatha. P
 
NONLINEAR CONTROL SYSTEM (Phase plane & Phase Trajectory Method)
NONLINEAR CONTROL SYSTEM(Phase plane & Phase Trajectory Method)NONLINEAR CONTROL SYSTEM(Phase plane & Phase Trajectory Method)
NONLINEAR CONTROL SYSTEM (Phase plane & Phase Trajectory Method)Niraj Solanki
 
Chapter 2 transmission line parameters
Chapter 2  transmission line parametersChapter 2  transmission line parameters
Chapter 2 transmission line parametersfiraoltemesgen1
 

Tendances (20)

power flow and optimal power flow
power flow and optimal power flowpower flow and optimal power flow
power flow and optimal power flow
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Importance of matlab
Importance of matlabImportance of matlab
Importance of matlab
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginners
 
Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4Introduction to matlab lecture 1 of 4
Introduction to matlab lecture 1 of 4
 
Simulink Stateflow workshop
 Simulink Stateflow workshop Simulink Stateflow workshop
Simulink Stateflow workshop
 
Modern power system planning new
Modern power system planning newModern power system planning new
Modern power system planning new
 
Basic matlab and matrix
Basic matlab and matrixBasic matlab and matrix
Basic matlab and matrix
 
POWER SYSTEM PROTECTION
POWER SYSTEM PROTECTION POWER SYSTEM PROTECTION
POWER SYSTEM PROTECTION
 
Lab manual for Basic electrical and electronics engineering for first year
Lab manual for Basic electrical and electronics engineering for first yearLab manual for Basic electrical and electronics engineering for first year
Lab manual for Basic electrical and electronics engineering for first year
 
Signal flow graph
Signal flow graphSignal flow graph
Signal flow graph
 
Control system lectures
Control system lectures Control system lectures
Control system lectures
 
MATLAB Basics-Part1
MATLAB Basics-Part1MATLAB Basics-Part1
MATLAB Basics-Part1
 
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
 
PSPICE tutorial: Zener diodes & editing parts
PSPICE tutorial: Zener diodes & editing partsPSPICE tutorial: Zener diodes & editing parts
PSPICE tutorial: Zener diodes & editing parts
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
The admittance model and network calculation
The admittance model and network calculationThe admittance model and network calculation
The admittance model and network calculation
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processing
 
NONLINEAR CONTROL SYSTEM (Phase plane & Phase Trajectory Method)
NONLINEAR CONTROL SYSTEM(Phase plane & Phase Trajectory Method)NONLINEAR CONTROL SYSTEM(Phase plane & Phase Trajectory Method)
NONLINEAR CONTROL SYSTEM (Phase plane & Phase Trajectory Method)
 
Chapter 2 transmission line parameters
Chapter 2  transmission line parametersChapter 2  transmission line parameters
Chapter 2 transmission line parameters
 

En vedette

Simulink - Introduction with Practical Example
Simulink - Introduction with Practical ExampleSimulink - Introduction with Practical Example
Simulink - Introduction with Practical ExampleKamran 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 modelsPtidej Team
 
A presentation on suspension using simulink
A presentation on suspension using simulinkA presentation on suspension using simulink
A presentation on suspension using simulinkIMTH0
 
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 SHMDiane Infante
 
The simple pendulum
The simple pendulumThe simple pendulum
The simple pendulumvn24
 
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 publicationsMuhammad Salah
 
PROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERSPROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERSRAHUL DESHMUKH
 
Forelasning4
Forelasning4Forelasning4
Forelasning4Memo Love
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to MatlabAmr Rashed
 

En vedette (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
 
Forelasning4
Forelasning4Forelasning4
Forelasning4
 
Simulink
SimulinkSimulink
Simulink
 
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
 

Similaire à Introduction to simulink (1)

Simulink Presentation.ppt
Simulink Presentation.pptSimulink Presentation.ppt
Simulink Presentation.ppthodeeeeee1
 
LCE-UNIT 2 PPT.pdf
LCE-UNIT 2 PPT.pdfLCE-UNIT 2 PPT.pdf
LCE-UNIT 2 PPT.pdfHODECE21
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond Brunkow
 
Project seminar ppt_steelcasting
Project seminar ppt_steelcastingProject seminar ppt_steelcasting
Project seminar ppt_steelcastingRudra Narayan Paul
 
ESDL Research Overview
ESDL Research OverviewESDL Research Overview
ESDL Research OverviewESDL_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 ReportRiddhi 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 processesPolytechnique 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.pdfarihantcomputersddn
 
Control system introduction for different application
Control system introduction for different applicationControl system introduction for different application
Control system introduction for different applicationAnoopCadlord1
 
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
 
Lecture_03_EEE 363_Control System.pptx
Lecture_03_EEE 363_Control System.pptxLecture_03_EEE 363_Control System.pptx
Lecture_03_EEE 363_Control System.pptxTasnimAhmad14
 

Similaire à 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
 
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 ...
 
Lecture_03_EEE 363_Control System.pptx
Lecture_03_EEE 363_Control System.pptxLecture_03_EEE 363_Control System.pptx
Lecture_03_EEE 363_Control System.pptx
 

Dernier

kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 

Dernier (20)

kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 

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