Professional Documents
Culture Documents
Model-Based Design: Design With Simulation in Simulink: Ruth-Anne Marchant Application Engineer Mathworks
Model-Based Design: Design With Simulation in Simulink: Ruth-Anne Marchant Application Engineer Mathworks
Ruth-Anne Marchant
Application Engineer
MathWorks
Summary
3
Traditional Development Workflow
RESEARCH REQUIREMENTS
SPECIFICATIONS
Algorithm Algorithm
MCAD/ MCAD/
C/C++ C/C++
EDA EDA
Design Design
MCAE MCAE
4
Problems in Traditional Development Workflow
Requirement Documents
RESEARCH REQUIREMENTS
Paper Specifications
SPECIFICATIONS
Physical Prototypes
Algorithm MCAD/
C/C++ EDA
Design MCAE
5
Model-Based Design Workflow
RESEARCH REQUIREMENTS
DESIGN
Traditional System
Development Workflow Environment Models
1. Research
Structured
C, C++ VHDL, Verilog
Text
INTEGRATION
6
Model-Based Design: Specifications
RESEARCH REQUIREMENTS
CAPABILITIES BENEFITS
DESIGN
7
Model-Based Design: Requirements
RESEARCH REQUIREMENTS
Formalize requirements as properties and objectives
DESIGN
Environment Models
Physical Components
Algorithms
Model system response bounds Trace to requirements in DOORS, Word, Excel, etc.
8
Model-Based Design: Design
RESEARCH REQUIREMENTS
CAPABILITIES BENEFITS
DESIGN
9
Model-Based Design: Design
RESEARCH REQUIREMENTS
CAPABILITIES BENEFITS
DESIGN
IMPLEMENTATION
Physical Components
Structured
C, C++ VHDL, Verilog
Algorithms Text
10
RESEARCH REQUIREMENTS
Environment Models
Physical Components
Algorithms
CAPABILITIES BENEFITS
• Rapid Prototyping • Eliminate hand-coding
• Automatic Code • Eliminate hand-code errors
Generation:
• Hardware target portability
IMPLEMENTATION
• C/C++
• Better testability and reuse
Structured
C, C++ VHDL, Verilog • HDL
Text
• Bridge between domain,
MCU DSP FPGA ASIC PLC, PAC • PLC software, and hardware
knowledge experts
11
Model-Based Design: Test and Verification
RESEARCH REQUIREMENTS
DESIGN
Environment Models
CAPABILITIES BENEFITS
• Model Verification • Detect errors earlier
INTEGRATION
12
Building a Wave Farm with Model-Based Design
13
Outline
Summary
14
Outline
Summary
15
Mechanical System Modelling
16
Mechanical System Modelling
17
Mechanical System Modelling
18
Electrical System Modelling
Bridge Rectifier
(AC to DC)
19
Electrical System Modelling
Motor
Servoamplifier
DC Motor
Hall Effect
Sensor
Speed Controller
20
Electrical System Modelling
21
Multi-Domain Modelling of Physical Systems
22
Control System Design
23
Defining System Mode Logic
Cruise Mode
Brakes Charge Accel is low
released Charge is high &&
Charge is low
No
Charge
is low Charge
24
Outline
Summary
25
Optimise Entire System Motor Torque
…
for parfor
…
27
Shorten Simulation Times With Parallel Computing
Model:
Multi
Core
HEV Model
Drive Cycles
Parameter Set 1
Weights
Ratios Parameter Set 2
…
…
Parameter Set N
Problem: Minimize simulation time to run
a parameter sweep on the HEV model
Solution: Use Parallel Computing Toolbox
to speed up the sweep
28
Outline
Summary
29
Automatically Run Tests And Document Results
Report
Situation:
Test
Design
Change Document
Evaluate
Results
Summary
31
Key Points
32
Call to Action
Contact me:
– Ruth-Anne Marchant
ruth-anne.marchant@mathworks.com.au
33
Q&A
34