Echtzeittesten mit MathWorks leicht gemacht

advertisement
Echtzeittesten mit MathWorks leicht gemacht
Simulink Real-Time
Tobias Kuschmider
Applikationsingenieur
© 2015 The MathWorks, Inc.
1
Model-Based Design
Verification and Validation
Continuous Verification and Validation
Requirements
System Design
Environment
Physical Components
Algorithms
System-Level
Specification
Component Design
Subsystem
Design
User Acceptance
Testing
Complete
Integration
& Test
Integration
testing
System-Level
Integration & Test
Code
Verification and
Validation
Embedded
Software
Digital
Electronics
C, C++
MCU
Subsystem
Integration & Test
VHDL, Verilog
DSP
FPGA
ASIC
Integration
Implementation
Subsystem
Implementation
2
Model-Based Design
Verification and Validation
Continuous Verification and Validation
Requirements
System Design
Environment
Physical Components
Algorithms
System-Level
Specification
Rapid
Prototyping
Subsystem
Design
User Acceptance
Testing
HiL
Simulation
System-Level
Integration & Test
Code
Verification and
Validation
Embedded
Software
Digital
Electronics
C, C++
MCU
Complete
Integration
& Test
Subsystem
Integration & Test
VHDL, Verilog
DSP
FPGA
ASIC
Integration
Implementation
Subsystem
Implementation
3
Simulink Real-Time Enables Simulation and Testing
Rapidly create real-time applications from Simulink models and run and test
them with your hardware under test at normal operating frequencies, speeds,
and timing.
4
Real-Time Simulation and Testing Tasks:
Rapid Control Prototyping
I/O
Output
I/O
Input
Wiring and
Signal Conditioning
Target Computer Hardware
Physical Plant Hardware
5
Real-Time Simulation and Testing Tasks:
Hardware-in-the-loop (HIL) Simulation
Wiring and
Signal Conditioning
Embedded Controller Hardware
Target Computer Hardware
6
Additional Real-Time Simulation and Testing Tasks:
Parametric Evaluation and Performance Assessment
§ 
System robustness
–  Monte Carlo analysis
–  Operational envelope testing
§ 
Human factors
–  Human-in-the-loop simulation
–  Virtual reality simulators
§ 
Calibration
–  Tune algorithmic coefficients
–  Optimize performance
7
How does Simulink Real-Time work?
From desktop simulation to real time
Development Computer
with MATLAB and
Simulink
Target Computer
Hardware
3
1
Automatic Code
Generation
2
Compiler
.dlm
Ethernet link
Creation of real-time applications from Simulink models and loading them
onto dedicated target computer hardware in 3 automated steps:
1 Code Generation
2 Compile and Link
3 Download and Ready to Run
8
Instrument your Real-Time Applications
§ 
Simulink Real-Time provides a number of UI options that
enable you to communicate with and control real-time
applications running on the target machine:
ü  Simulink Real-Time Explorer – slrtexplr
ü  Simulink External Mode
ü  Simulink Real-Time APIs
ü  MATLAB UIs
ü  MATLAB command scripts
§ 
Use one or more of these tools based on your workflow
and interface requirements.
9
Demonstration – Simulink Real-Time Explorer
10
11
Demonstration – Simulink External Mode
12
13
Demonstration – Batch Simulation
14
15
Control and Instrument Your Real-Time Application
Built-in control and monitoring User Interface
16
Create UIs in MATLAB
Graphical front end for your MATLAB scripts and apps
17
Simulink Real-Time Deployment
§ 
§ 
§ 
Runs independently of Simulink
One Simulink/Simulink Real-Time Target license
Many target machines
ü  Field deployment
ü  Complete controller products
ü  Stand-alone HIL solutions
ü  Etc.
18
Speedgoat Real-Time Target Machines
Assembled based on your technical requirements
§ 
Form factors available for office, lab,
field, and classroom use
§ 
Optimized for highest real-time
performance (Multicore CPUs and
FPGAs)
§ 
Fully tested and works out-of-the-box
§ 
Flexible, expandable architecture
supporting a wide range I/O connectivity
* Custom engineering and I/O module development available
19
Simulink Real-Time
Summary
§ 
Seamless integration into MATLAB/Simulink
§ 
An easy way to test your application in a real-time
environment
§ 
Runs on Speedgoat target hardware
20
Download