Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink...
Transcript of Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink...
![Page 1: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/1.jpg)
1 © 2012 The MathWorks, Inc.
Introducing Simulink Release 2012b
for Control System Development
Mark Walker
MathWorks
![Page 2: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/2.jpg)
2
Simulink R2012b the most significant upgrade to Simulink ever
Who does Simulink R2012b affect?
Every single Simulink user
Why?
Because Simulink R2012b features the new Simulink Editor, which
makes it easier to develop, navigate, and use models.
In short …
Simulink R2012b simplifies modelling
![Page 3: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/3.jpg)
3
Introducing the
New Simulink Editor
![Page 4: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/4.jpg)
4
Highlights of the new Simulink Editor
Explorer bar to navigate model hierarchy
Tabbed windows to minimize window clutter
Reorganised menu to fit workflow of Model-Based Design
Smart signal routing that determines the optimal signal line path
Badges to get signal and block information at a glance
Simulation stepper with breakpoints to debug the simulation
Comment out blocks to test variations of the model
![Page 5: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/5.jpg)
5
Highlights of the new Stateflow Editor
Tighter integration with Simulink (tabbed windows, Explorer bar)
Smart guides to align states, junctions, functions for cleaner charts
Drag margins to move containers and their contents
Transition indicator lines to identify labels for transitions
Just-in-time error notifications to highlight object placement conflicts
Debug buttons located within main menu for easy access
Visual breakpoints and data value displays during debug mode
![Page 6: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/6.jpg)
6
Three Themes
Helping Simulink users
– Understand large models more quickly
– Build models more easily
– Explore model behaviour through simulation
![Page 7: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/7.jpg)
7
Understand Models Quickly
Large teams work on large models
Simulink Projects supports the development process
Editor helps you understand a large model
![Page 8: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/8.jpg)
8
Simulink Projects Overview
Source
Control
Understand structure
of your design
Integrate with
Source Control
Support
for peer-
review of
changes
+ YourLib v1.3
+ Microsoft® Visual C++ 2010
+…
Create & standardize
team environment
MATLAB API to help
automate common,
uncommon &
repetitive tasks
Place to build,
store & share
best-practice
Simulink Projects
![Page 9: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/9.jpg)
10
Explorer Bar Navigate model hierarchy
![Page 10: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/10.jpg)
15
Tabbed Windows Key sections of the model at your fingertips
![Page 11: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/11.jpg)
21
Construct Models Quickly
Automate construction where possible
Provide immediate feedback
Provide relevant advice
![Page 12: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/12.jpg)
22
Smart Signal Routing Determine the optimal signal path
![Page 13: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/13.jpg)
30
New Stateflow Editor Organize the logic
![Page 14: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/14.jpg)
33
State Transition Tables Simplified interface for state machine specification
![Page 15: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/15.jpg)
34
MATLAB Action Language Bring the usability of MATLAB into your Stateflow charts
MATLAB code can now be used
directly in states and transitions
Variables automatically declared
– just like in MATLAB
Variable types and sizes on
function inputs and outputs
automatically inferred
![Page 16: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/16.jpg)
35
In Diagram Notifications
Non modal
Useful for short messages/alerts
Often comes with an associated action
![Page 17: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/17.jpg)
36
Explore Model Behaviour Quickly
The most valuable button in Simulink:
Improve how you interact with a model
![Page 18: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/18.jpg)
37
Simulation Stepper with Breakpoints Understand the system, debug the design
![Page 19: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/19.jpg)
44
Simulink Data Inspector in R2012b
Simulink Data Inspector is on the toolbar
– Dedicated record button:
– Integration with Next/Previous Step
![Page 20: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/20.jpg)
45
A Difficult Demo?
How stressful is it to do a hardware demo?
Heart rate monitor
Arduino Mega 2560
Indicator LEDs
Interface board
Clearly a prototype!
![Page 21: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/21.jpg)
47
We have seen…
Host based simulation / debug of the monitoring
algorithm
![Page 22: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/22.jpg)
48
We have seen…
Using Run on Target Hardware + External Mode to
check behaviour on device
![Page 23: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/23.jpg)
49
We have seen…
Device running standalone
![Page 24: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/24.jpg)
50
Model Based Design Overview
INTEGRATION
IMPLEMENTATION
DESIGN
TE
ST
& V
ER
IFIC
AT
ION
RESEARCH REQUIREMENTS
MCU DSP FPGA ASIC
Structured
Text VHDL, Verilog C, C++
Environment Models
Physical Components
Algorithms
PLC
Rapid prototyping:
xPC for HIL
Controller RP
Production Code Generation
New in Simulink R2012b:
Run on Target Hardware
![Page 25: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/25.jpg)
51
Simulink Hardware Support for Project-
Based Learning
http://www.mathworks.com/academia/
hardware-resources/
Supported target hardware
– Arduino® Uno($30), Mega 2560($65)
– LEGO® MINDSTORMS® NXT ($280)
– BeagleBoard ($150)
– PandaBoard ($175)
Available in Student Version
Run Simulink models on
low-cost target hardware
![Page 26: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/26.jpg)
53
Code Generation Approaches in R2012b
Run on Target
Hardware
Simulink Coder Embedded Coder
Code runs standalone Code runs standalone Code runs standalone
Interface to custom
drivers / code
Interface to custom
drivers / code
Interface to custom
drivers / code
External Mode External Mode External Mode
No access to source
code
Full source available Full source available,
optimised for readability
and traceability
Fixed list of targets Any target, including
xPC turnkey systems
Any production target
No optimisation control Basic control Advanced control
No design feedback Basic execution profiling On-target profiling, SIL /
PIL and code coverage
Early stage research Rapid prototyping / HIL Production code
![Page 27: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/27.jpg)
54
Summary
Simulink Release 2012b:
– Help understand large models quickly
– Make model construction easier
– Help explore model behaviour through
simulation
– Run Simulink models directly on hardware
![Page 28: Introducing Simulink Release 2012b for Control System ... file4 Highlights of the new Simulink Editor Explorer bar to navigate model hierarchy Tabbed windows to minimize window clutter](https://reader033.fdocuments.us/reader033/viewer/2022041419/5e1dcb8f74e6446e9f29f5d6/html5/thumbnails/28.jpg)
55
Next steps
Try out Simulink R2012b for yourself
– R2012b is available today
– Visit the EXPO demo booths to explore more during
the breaks
If you are interested in specific capabilities
– Ask MathWorks staff here today
– Make a note on your feedback form