1
© 2012 The MathWorks, Inc.
Introduction to Control System Design
& Analysis Using MATLAB & Simulink
Chirag Patel
Application Engineer – Control System
2
Key Takeaways
Single Environment for Plant Modeling, Controller Design and
Analysis
Efficiently Design Controller Logic using Interactive Design Tools
Achieve Overall System Performance Goals using Optimization-
Based Techniques
3
Control System Design Process
Know your plant/system - Linearization
Design the controller with linear plant model
Test Controller in Real-Time
Test controller with non-linear plant in closed-
loop
Add State-machine & Supervisory Logic
4
Multi-Domain Plant Modeling using Simulink
and Simscape
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
 Simulink is an environment used by
system and controls engineers for
multidomain system simulation &
embedded algorithm development
 Simscape enables physical
modeling of multidomain physical
systems
 Eases process of
modeling physical systems
– Build models that reflect
structure of physical system
– Leverage MATLAB to create
reusable models
Demo
5
Plant Model in Simulink
Simulink Advantages:
• Environment for Model-Based Design for Dynamic and Embedded
Systems
• Model, Simulate, Visualize & Analyze Results, Generate Code &
Implement
6
Plant Model in Simscape
Simscape Model Advantages:
• Easier to read than equations
• Quicker to create
• More intuitive – easier to
explain to other engineers
R
L
Kt,Ke
J,b
θ
i
7
Multi-Domain Plant Modelling using
Simscape
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
Multidomain physical systems
Simscape
Mechanical Hydraulic Electrical
Thermal
Custom Domains via
Simscape Language
Pneumatic Magnetic
N S
SimMechanics
SimDriveline
SimHydraulics
SimElectronics
SimPowerSystems
Simscape
MATLAB, Simulink
8
Model System using Measured Data
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
 System Identification Toolbox
helps you estimate a model from
measured data.
9
Challenges with Nonlinear Plants
 Finding desired operating points or trimming the plant at multiple
operating conditions
 Deriving linearized models at multiple operating points for large &
complex system
 Handling systems with strong discontinuities or event-based
dynamics
 Performing stability analysis at various operating points
 Checking robustness of a controller against plant uncertainties
10
 Find trim points using optimization
methods
 Calculate at specific times or events during
simulation
 Automatically generate MATLAB code from
the Graphical User Interface
Nonintrusive Trimming & Linearization of
Plant Models
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
Demo
11
 Linearize without having to modify model
structure
 Linearize whole model, portion of model,
single block, or subsystem
 Specify linearization behavior of any number
of blocks in the model
Nonintrusive Trimming & Linearization of
Plant Models
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
Demo
12
 Compute frequency response for models
with strong discontinuities or event-based
dynamics
 Verify results of a linearization
 Study the effects of excitation signal
amplitude on nonlinear system’s gain and
phase characteristics
Simulation-Based Computation of a Simulink
Model Frequency Response
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
13
Easy Tuning of Single-Loop and Multi-Loop
Controllers Directly in Simulink
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
 Tune gain, transfer function, zero-
pole-gain, state-space, and PID
blocks in SISO loops
 Automatically identify relevant control
loops and launch preconfigured
session of SISO Design Tool
 Use graphical, automatic, and
optimization-based tuning methods
 Save design for easy retrieval and
update of Simulink controller
parameters Demo
14
Interactive Tuning of PID Controllers
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
Demo
15
Controller Tuning using Optimization Based
Techniques
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
 Tune model parameters using numerical
optimization to meet desired system
performance
Demo
16
Checking Robustness of Controller Against
Plant Uncertainties
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
 Capturing plant model uncertainty
 Worst-Case Stability and Performance
Analysis of Uncertain Systems
 Automatic Tuning of Centralized and
Decentralized Control Systems
17
Challenges with Nonlinear Plants
 Finding desired operating points or trimming the plant at multiple
operating conditions
 Deriving linearized models at multiple operating points for large &
complex system
 Handling systems with strong discontinuities or event-based
dynamics
 Performing stability analysis at various operating points
 Checking robustness of a controller against plant uncertainties
18
Design & Simulate State Machines and
Control Logic using Stateflow
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
 Stateflow® extends Simulink® with a design
environment for developing complex state
charts and flow graphs in a natural, readable,
and understandable form
19
Real-time Testing & HIL Simulation
Plant Modeling & Linearization
Controller Design & Stability
Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine &
Supervisory Logic
 Run Simulink models in hard real-time
using xPC Target Turnkey solution
 Complete hardware-software solution to
perform rapid-control prototyping or
hardware-in-loop testing
20
Summary
Plant Modeling & Linearization
Controller Design & Stability Analysis
Test Controller in Real-Time
Closed-Loop System Analysis
Add State-Machine & Supervisory
Logic
Explore &
Research
Design &
Development
Go
Real Time

More Related Content

PPTX
Design of imc based controller for industrial purpose
PDF
modelling-and-simulation-made-easy-with-simulink.pdf
PPTX
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
PDF
Icse2018 autonomic
PPTX
Modeling and Testing Dovetail in MagicDraw
PDF
Aplication of on line data analytics to a continuous process polybetene unit
PDF
Automated Testing of Hybrid Simulink/Stateflow Controllers
PPT
Maximizing Efficiency Using Simulation
Design of imc based controller for industrial purpose
modelling-and-simulation-made-easy-with-simulink.pdf
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
Icse2018 autonomic
Modeling and Testing Dovetail in MagicDraw
Aplication of on line data analytics to a continuous process polybetene unit
Automated Testing of Hybrid Simulink/Stateflow Controllers
Maximizing Efficiency Using Simulation

Similar to introduction-to-control-systDJKFNJKDSFJSD (20)

PPTX
Building The Virtual Plant For DeltaV
PDF
Automatic control 1 reduction block .pdf
PPTX
Implementation of Dynamic Simulation for Engineering and Human Factors
PPT
Adaptivebackstepping.ppt
DOCX
report.docx About Software development life Cycle
PDF
Automated and Scalable Solutions for Software Testing: The Essential Role of ...
PDF
lecture1423904331 (1).pdf
PDF
lecture1423904331 (1).pdf
PDF
Control systemengineering notes.pdf
PPTX
Saving resources with simulation webinar 092011
PPTX
Process Control in Chemical Engineering by MATLAB
PPTX
Modelon Modelica executable requirements Ansys Conference 2016
PDF
How Soft Sensing Using Simulation Enhances Plant Process Management
PDF
Simulink Stateflow workshop
PDF
Presentation Verification & Validation
PDF
Power System Dynamics Stability and control By K R Padiyar - By EasyEngineeri...
PDF
Simulation of Manufacturing System
PPTX
Model based design-Hardware in loop-software in loop
PDF
MIL_SIL.pdf
PDF
Simulation with Python and MATLAB® in Capella
Building The Virtual Plant For DeltaV
Automatic control 1 reduction block .pdf
Implementation of Dynamic Simulation for Engineering and Human Factors
Adaptivebackstepping.ppt
report.docx About Software development life Cycle
Automated and Scalable Solutions for Software Testing: The Essential Role of ...
lecture1423904331 (1).pdf
lecture1423904331 (1).pdf
Control systemengineering notes.pdf
Saving resources with simulation webinar 092011
Process Control in Chemical Engineering by MATLAB
Modelon Modelica executable requirements Ansys Conference 2016
How Soft Sensing Using Simulation Enhances Plant Process Management
Simulink Stateflow workshop
Presentation Verification & Validation
Power System Dynamics Stability and control By K R Padiyar - By EasyEngineeri...
Simulation of Manufacturing System
Model based design-Hardware in loop-software in loop
MIL_SIL.pdf
Simulation with Python and MATLAB® in Capella
Ad

Recently uploaded (20)

PPTX
ELETRONIC-PRODUCTS-ASSEMBLY-AND-SERVICING-NC-II-WEEK-1-Copy.pptx
PPTX
dDifference Beetween Saving slides And Investment Slides.pptx
PDF
GENERATOR AND IMPROVED COIL THEREFOR HAVINGELECTRODYNAMIC PROPERTIES
PPT
System Unit Components and its Functions
PPTX
unit1d-communitypharmacy-240815170017-d032dce8.pptx
PDF
CAB UNIT 1 with computer details details
PPTX
Clauses_Part1.hshshpjzjxnznxnxnndndndndndndndnndptx
PPTX
Computer Hardware - Technology and Livelihood Education
PPTX
vortex flow measurement in instrumentation
PDF
2- Physical Layer (06).pdfgshshshbsbshshshhs
PDF
Printing Presentation to show beginners.
PDF
ISS2022 present sdabhsa hsdhdfahasda ssdsd
PDF
Dozuki_Solution-hardware minimalization.
PDF
2_STM32&SecureElements2_STM32&SecureElements
PDF
ICT grade for 8. MATATAG curriculum .P2.pdf
PDF
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
PPTX
Growth Capital Investment - Espresso Capital.pptx
PPTX
Pin configuration and project related to
PDF
Tcl Scripting for EDA.pdf
PDF
Topic-1-Main-Features-of-Data-Processing.pdf
ELETRONIC-PRODUCTS-ASSEMBLY-AND-SERVICING-NC-II-WEEK-1-Copy.pptx
dDifference Beetween Saving slides And Investment Slides.pptx
GENERATOR AND IMPROVED COIL THEREFOR HAVINGELECTRODYNAMIC PROPERTIES
System Unit Components and its Functions
unit1d-communitypharmacy-240815170017-d032dce8.pptx
CAB UNIT 1 with computer details details
Clauses_Part1.hshshpjzjxnznxnxnndndndndndndndnndptx
Computer Hardware - Technology and Livelihood Education
vortex flow measurement in instrumentation
2- Physical Layer (06).pdfgshshshbsbshshshhs
Printing Presentation to show beginners.
ISS2022 present sdabhsa hsdhdfahasda ssdsd
Dozuki_Solution-hardware minimalization.
2_STM32&SecureElements2_STM32&SecureElements
ICT grade for 8. MATATAG curriculum .P2.pdf
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
Growth Capital Investment - Espresso Capital.pptx
Pin configuration and project related to
Tcl Scripting for EDA.pdf
Topic-1-Main-Features-of-Data-Processing.pdf
Ad

introduction-to-control-systDJKFNJKDSFJSD

  • 1. 1 © 2012 The MathWorks, Inc. Introduction to Control System Design & Analysis Using MATLAB & Simulink Chirag Patel Application Engineer – Control System
  • 2. 2 Key Takeaways Single Environment for Plant Modeling, Controller Design and Analysis Efficiently Design Controller Logic using Interactive Design Tools Achieve Overall System Performance Goals using Optimization- Based Techniques
  • 3. 3 Control System Design Process Know your plant/system - Linearization Design the controller with linear plant model Test Controller in Real-Time Test controller with non-linear plant in closed- loop Add State-machine & Supervisory Logic
  • 4. 4 Multi-Domain Plant Modeling using Simulink and Simscape Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic  Simulink is an environment used by system and controls engineers for multidomain system simulation & embedded algorithm development  Simscape enables physical modeling of multidomain physical systems  Eases process of modeling physical systems – Build models that reflect structure of physical system – Leverage MATLAB to create reusable models Demo
  • 5. 5 Plant Model in Simulink Simulink Advantages: • Environment for Model-Based Design for Dynamic and Embedded Systems • Model, Simulate, Visualize & Analyze Results, Generate Code & Implement
  • 6. 6 Plant Model in Simscape Simscape Model Advantages: • Easier to read than equations • Quicker to create • More intuitive – easier to explain to other engineers R L Kt,Ke J,b θ i
  • 7. 7 Multi-Domain Plant Modelling using Simscape Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic Multidomain physical systems Simscape Mechanical Hydraulic Electrical Thermal Custom Domains via Simscape Language Pneumatic Magnetic N S SimMechanics SimDriveline SimHydraulics SimElectronics SimPowerSystems Simscape MATLAB, Simulink
  • 8. 8 Model System using Measured Data Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic  System Identification Toolbox helps you estimate a model from measured data.
  • 9. 9 Challenges with Nonlinear Plants  Finding desired operating points or trimming the plant at multiple operating conditions  Deriving linearized models at multiple operating points for large & complex system  Handling systems with strong discontinuities or event-based dynamics  Performing stability analysis at various operating points  Checking robustness of a controller against plant uncertainties
  • 10. 10  Find trim points using optimization methods  Calculate at specific times or events during simulation  Automatically generate MATLAB code from the Graphical User Interface Nonintrusive Trimming & Linearization of Plant Models Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic Demo
  • 11. 11  Linearize without having to modify model structure  Linearize whole model, portion of model, single block, or subsystem  Specify linearization behavior of any number of blocks in the model Nonintrusive Trimming & Linearization of Plant Models Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic Demo
  • 12. 12  Compute frequency response for models with strong discontinuities or event-based dynamics  Verify results of a linearization  Study the effects of excitation signal amplitude on nonlinear system’s gain and phase characteristics Simulation-Based Computation of a Simulink Model Frequency Response Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic
  • 13. 13 Easy Tuning of Single-Loop and Multi-Loop Controllers Directly in Simulink Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic  Tune gain, transfer function, zero- pole-gain, state-space, and PID blocks in SISO loops  Automatically identify relevant control loops and launch preconfigured session of SISO Design Tool  Use graphical, automatic, and optimization-based tuning methods  Save design for easy retrieval and update of Simulink controller parameters Demo
  • 14. 14 Interactive Tuning of PID Controllers Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic Demo
  • 15. 15 Controller Tuning using Optimization Based Techniques Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic  Tune model parameters using numerical optimization to meet desired system performance Demo
  • 16. 16 Checking Robustness of Controller Against Plant Uncertainties Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic  Capturing plant model uncertainty  Worst-Case Stability and Performance Analysis of Uncertain Systems  Automatic Tuning of Centralized and Decentralized Control Systems
  • 17. 17 Challenges with Nonlinear Plants  Finding desired operating points or trimming the plant at multiple operating conditions  Deriving linearized models at multiple operating points for large & complex system  Handling systems with strong discontinuities or event-based dynamics  Performing stability analysis at various operating points  Checking robustness of a controller against plant uncertainties
  • 18. 18 Design & Simulate State Machines and Control Logic using Stateflow Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic  Stateflow® extends Simulink® with a design environment for developing complex state charts and flow graphs in a natural, readable, and understandable form
  • 19. 19 Real-time Testing & HIL Simulation Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic  Run Simulink models in hard real-time using xPC Target Turnkey solution  Complete hardware-software solution to perform rapid-control prototyping or hardware-in-loop testing
  • 20. 20 Summary Plant Modeling & Linearization Controller Design & Stability Analysis Test Controller in Real-Time Closed-Loop System Analysis Add State-Machine & Supervisory Logic Explore & Research Design & Development Go Real Time