Professional Documents
Culture Documents
22
Key Capabilities Drive MathWorks Business
Verification,
Validation,
Test and Model Code verification
and Test measurement checking Qualification kits
System
Simulink DSP designs State charts Physical Discrete-event modeling
Modeling and
Simulation
Communication modeling Video processing
systems
Data Analysis
and Algorithm
Control design Optimization Image Computational Computational
Development Signal processing Statistics processing finance biology
Founded in 1984
3
MathWorks Investment in Magnetics Added
To Simscape
Physical Modeling Pneumatics Added
To Simscape
Simscape Language
Introduced
Code Generation
Advances
Simscape
Simscape Diagnostics
Introduced Improvements
SimHydraulics
Introduced
SimDriveline Simscape-Based
Introduced Library Introduced
3-D Visualization
SimMechanics SolidWorks ProEngineer Second Generation
Improvements
Introduced Translator Translator Technology
AutodeskTranslator
Actuators
Sensors
u + s1 s2
System
y
s3
Controller Plant
5
Detect Integration Issues Earlier
Plant Plant
Specification Model
Actuators
Sensors
u + s1 s2
System
y
s3
Controller Plant
6
Model-Based-Design Adoption Scenarios
Modeling & Simulation Adoption
coding phase
design phase
requirements phase
RESEARCH REQUIREMENTS
DESIGN
Environment Models
Control Algorithms
IMPLEMENTATION
Structured
C, C++ VHDL, Verilog
Text
INTEGRATION
9
Early Verification of Concept
Predict dynamic system behavior by simulating
- Less physical prototypes
DESIGN
Use of simulation results for system design
Environmental Models - What / if studies
- Short iteration cycles
Mechanical Thermal Electrical
Supervisory Logic
Simple
model
Detailed
model
10
Appropriate Methods of Modeling
Algorit
DESIGN hm
Devel
Environmental Models Control & filter
opme algorithms
nt
(Simulink)
Mechanical Thermal Electrical Data
Modeli
ng
Control Algorithms
Control & Supervisory
Supervisory Logic Logics (Stateflow)
Embedded Digital
Software Electronics
VHDL,
C, C++
Verilog
Supervisory Logic
Embedded Digital
Software Electronics
VHDL,
C, C++
Verilog
MCUDSP FPGA
ASIC
12
Test and validate in real-time
RESEARCH REQUIREMENTS
DESIGN
Environmental Models
Mechanical Electrical
Rapid Prototyping of Control Algorithms
Control Algorithms
Fast implementation of algorithms in
Supervisory Logic C & HDL for functional testing in RT
IMPLEMENTATION
VHDL, Structured
C, C++
Verilog Text
13
Automatic Production Code Generation
RESEARCH REQUIREMENTS
General
Code generation in C/C++, HDL,
DESIGN IEC61131- Structured Text
VHDL, Structured
C, C++
Verilog Text
C-Code
MCU DSP FPGA ASIC PLC Integration of Legacy C/C++-Code
Automated integration with variety
of Embedded IDEs and P/DSP
14
Traceability from Requirements to Code
RESEARCH REQUIREMENTS
Linking Requirements with Model
Blocks and generated Code
DESIGN
Find corresponding locations
Environmental Models
easily in model and code
Mechanical Electrical
Control Algorithms
Supervisory Logic
IMPLEMENTATION
15
Benefits of Model-Based Design
RESEARCH REQUIREMENTS
Predict system behavior in
DESIGN
early development state
Environment Models
Structured
C, C++ VHDL, Verilog
Text Fast implementation by
MCU DSP FPGA ASIC PLC automatic code generation
16
Modeling Physical Systems
With MathWorks Products
Modeling Approaches
17
Thinking outside the block
Physical network approach vs. Simulink block diagrams
18
Conservation is Physical
20
SimPowersystems
21
Introduction to
SimPowerSystems
SimElectronics
SimMechanics
SimHydraulics
SimDriveline
SimPowerSystems
Enables physical modeling (acausal)
of electrical power systems
Simscape
and electric drives
MATLAB, Simulink
25kV
22
SimPowerSystems
Key Features
Comprehensive block libraries
for building power system models
Detailed models of common
AC and DC electric drives
Different simulation modes
to speed model execution
Ideal switching algorithm, enabling
fast simulation of power electronics
PowerGUI provides convenient tools
for common analysis tasks
Extensive set of demonstration
circuits and systems
23
Working with SimPowerSystems
With SimPowerSystems
you can:
Quickly build electrical power
system models
Model synchronous and
asynchronous electric drives
Perform common electrical
system analysis tasks
Develop and test controls
Generate code for improved performance
24
Quickly Build Electrical Systems
27
Electrical System Analysis
28
Improve Simulation Performance
Enables simulation of
ideal switches
Faster simulations
(explicit solver, larger time steps)
Does not require difficult parameter
A1x + B1u A2x + B2u
values (snubber, etc.)
Remove non-ideal effects, making
simulation results easier to interpret
29
Connecting
to Simscape
Electrical connection
via interface blocks
Add custom components
using Simscape language
Include other domains
Mechanical ports
Synchronous, asynchronous,
DC, and PMS machines
30
SimPowerSystems Supports
Simscape Editing Mode
Model Developer
Purchases Simscape
Share SimPowerSystems models and add-on products
with other Simscape users
Simulate, analyze, generate code
without purchasing extra licenses
Implement high-fidelity, + s1 s2
Controller Plant
32
SimPowerSystems Demonstration
PM Synchronous Motor Drive (ac6_example.mdl)
SimPowerSystems
SimElectronics
SimMechanics
SimHydraulics
SimDriveline
Enables physical modeling
of electrical power systems
Simscape
Models look like power network schematic
MATLAB, Simulink
Three-phase, electric drives, FACTS, etc.
Solvers optimized for fast simulation
of high-speed switching electronics
Continuous, discrete, and phasor methods
Ideal switching algorithm
Many analyses are automated
Load flows, FFT analysis, and more
Combining with other physical modeling
tools to model multidomain systems
34
ABB Accelerates Application Control
Software Development for Power
Electronic Controller
35
Alstom Generates Production Code for
Safety-Critical Power Converter Control
Systems
Challenge
Design and implement real-time power conversion and
control systems for trams, metros, and railways
Pendolino tilting train.
Solution
Use MathWorks tools for Model-Based Design to design,
simulate, and automatically generate production code for
safety-critical transportation systems
When Alstom delivered a
Results Pendolino train to Czech
Development time cut by 50% Railways, the railway
Defect-free, safety-critical code generated and certified application was the first with
Common language established
automatically generated code
to receive TUV certification.
Han Geerligs
Alstom
36
Hydro-Qubec Models Wind Power Plant
Performance
Challenge
Plan the integration of new wind farms into the power
Turbines on a wind farm.
system, predict power output, and ensure safe, reliable
operation
Solution Accurate modeling is essential not
Use MathWorks products to simulate individual wind only for planning investments but
turbines and wind farms and to generate C code for also to detect situations that can
multiprocessor simulation of entire power systems
cause an outage. With MathWorks
Results tools, we can simulate power
Simulation speed increased to real time electronics, mechanics, and control
Equipment needs accurately predicted systems in one environment, and
Dynamic simulations enabled our models respond like the turbines
we have in the field.
Richard Gagnon
Hydro-Qubec
Link to user story
37
What is xPC Target?
Environment Testing
Design Integration
(HIL)
Verification Testing
Controller
Code
Verification
Implementation
Embedded
Software
C, C++
MCU DSP
39
Real-Time Testing Scenarios:
Functional Rapid Prototyping
Code
Execution
Generation
Host/Target
Real-time
Wiring and
Signal Conditioning
Code
Generation
Code
Execution Generation
Host/Target/Target
Real-time
Wiring and
Signal Conditioning
1
Host xPC Target 3
computer on
with Target
MATLAB Computer
2
Ethernet or RS 232
42
What is xPC Target?
Host
computer Ethernet or RS 232xPC Target
on
with Target
MATLAB Computer
Ethernet or RS 232
Ethernet or RS 232
4
2
3
1
Ethernet or RS 232
xPC Target
on
Target
Computer