Вы находитесь на странице: 1из 29

1

Understanding Control System Design


with MATLAB

Dong Ngoc Minh Cong


Application Engineer (VN)

2
Outline
• Introducing MATLAB and Simulink for Control System Design

• System Identification

• Modelling controller and plant

• Multi-loop control on physical modelling

• Summary

3
Outline
• Introducing MATLAB and Simulink for Control System Design

• System Identification

• Modelling controller and plant

• Multi-loop control on physical modelling

• Summary

4
What is MATLAB?
• High-level language

• Interactive development environment

• Used for:
– Numerical computation
– Data analysis and visualization
– Algorithm development and programming
– Application development and deployment

5
What is Simulink?
• Block-diagram environment

• Model, simulate, analyze and validate dynamic systems

• Built-in library blocks

• Visualization blocks

• Automatic code generation

• Accurately design, test and implement:


– Control systems
– Signal processing systems
– Communication systems
– Mechanical Systems

6
Simulink for Control System Design

7
Control System Development Workflow

Plant modelling Control design Implementation

Understanding your Solving your Generating


design problem design problem embedded code

8
Outline
• Introducing MATLAB and Simulink for Control System Design

• System Identification

• Modelling controller and plant

• Multi-loop control on physical modelling

• Summary

9
Plant Modelling
System equations Empirical data

Mathematical models Gray box models Black box models


• Equations known • Equations known • Equations unknown
• Parameters known • Parameters unknown • Measurement data
• Measurement data obtained obtained
𝐴𝑠 + 𝐵
𝑇= 𝑥
𝐶𝑠 − 𝑠 + 1
x=2
x=2
A=1
A=1
B=?
B=2
C=?
C=3

10
The System

11
The Model
u y
Input Output

rudders velocity
aileron pitch angle
thrust

u, y: measured time or frequency


domain signals

12
The System and the Model

System
Measured input + error

-
Model Minimize

13
Modelling & Simulation

14
Outline
• Introducing MATLAB and Simulink for Control System Design

• System Identification

• Modelling controller and plant

• Multi-loop control on physical modelling

• Summary

15
What is controller?

Actuators
Electrical

Sensors
Mechanical

+ Controller Device

u y
Plant

❖ There 2 main problems:


• Which is the plant model?
• Which suitable parameters of the controller?
16
Using Models for Control System Design
System
Current Identification Toolbox Position
▪ Estimate plant
with parameter
Noise Model uncertainties
Position Error Control
N
▪ Estimate
noise model
Dynamic Model
P + ∆P
➢Control System Toolbox
Controller ➢Simulink Control Design
➢Robust Control Toolbox
➢Model Predictive Control Toolbox
17
Control Design Tasks
• Linearizing the plant model to understand dynamics
• Validating linearization results
• Creating linear models for control design
• Designing a controller at one operating condition
• Designing controllers for multiple operating conditions
• Working with multiple plant models
• Gain scheduling
• Designing control logic

18
Outline
• Introducing MATLAB and Simulink for Control System Design

• System Identification

• Modelling controller and plant

• Multi-loop control on physical modelling

• Summary

Controlling a
robotic arm

19
A 6-DOF Robotic Arm

20
A 6-DOF Robotic Arm: untuned response

21
A 6-DOF Robotic Arm

22
Summary
• Using MATLAB and Simulink for control system design

• Modeling dynamic systems from measured data

• Easy and intuitive steps for engineers and non-control experts to use

• Integration of workflow, from basic, mathematical and physical modellings to deployment

23
Q&A

24
TechSource Solutions: Tools & Support
Training Options & Recommendations

• Free self-paced, introductory tutorials:


– MATLAB Onramp hands-on tutorial
– Deep Learning Onramp hands-on tutorial
– Simulink Onramp hands-on tutorial
– Stateflow Onramp hands-on tutorial

• Onsite, hands-on Workshops

• Formal Training classes: public, online/onsite


– Public Class
– Online Training
– Custom Onsite Training 25
TechSource Solutions: Tools & Support
Consulting Services

• Technical expertise
Service Offerings: Get started quickly
and effectively with a MathWorks product
• Deep product knowledge • Innovation Advisory Services: Ongoing, detailed
• Extensive resource access • Reduced costs support
• Broad industry perspective • Enterprise Integration and Support
• Faster results
• Customer focus • Release Migration
• Improved quality
• Ability to work onsite • Process Audit and Industry best
• Higher efficiency practice
• Software development for custom
Apps
• Cloud and edge computing
Special Projects: Extend and customize
MathWorks tools

26
TechSource Solutions: Tools & Support
Technical Support

Technical Support:
• Email : support@techsource-asia.com

Contact Us:
• Website : https://www.techsource-asia.com
• Email : events@techsource-asia.com
• Tel: +65 6842 4222

Facebook LinkedIn

27
We Value Your Feedback

Please scan the QR code to complete a survey so that we


can continue to improve our future webinar.

28
THANK YOU !
minhcong.dong@ascendas-asia.com

29

Оценить