Introduction to Simulink and Stateflow - MathWorks Tuner (dc motor control/Discrete PID Controller)...
10
1 © 2014 The MathWorks, Inc. Introduction to Simulink and Stateflow By Nic Ross
Transcript of Introduction to Simulink and Stateflow - MathWorks Tuner (dc motor control/Discrete PID Controller)...
1© 2014 The MathWorks, Inc.
Introduction to Simulink and Stateflow
By Nic Ross
2
Key message
Simulink and Stateflow provide:
A flexible environment for modelling real systems...
in a modular fashion...
that allows rapid development.
3
Agenda
Model a DC motor
Design a PID controller
Add supervisory logic
4
R
L
K
J,b
ω
i
V
dt
diLRiKV
dt
dJbiKT
dtRiKVL
i )(1
dtbiKTJ
)(1
Control of a DC Motor
5
What Have We Seen?
R
L
K
J,b
ω
i
V
dtRiKVL
i )(1
dtbiKTJ
)(1
6
What Have We Seen?
Rapid prototyping
Modular architecture
7
What Have We Seen?
8
Key messages
1 Flexible modelling environment
Modular, hierarchical design2
3 Allows rapid development
9
Where to from here?
Automatic code generationPhysical modelling
Verification and validation
10
Any Questions?
?