Post on 10-Aug-2020
transcript
1© 2017 MathWorks
R2016b deployement at PSA
What’s New in MATLAB and Simulink
R2013a to R2016b
Vélizy
October 5th 2017
Mathieu Cuenant
2
TITRE Date
Vélizy
Date La
Garenne
DESCRIPTIF
Conception et validation
de systèmes ADAS
09/11/2017 07/11/2017 Découvrez la nouvelle Automated Driving System Toolbox, qui vous assiste dans la conception d'algorithmes de fusion de capteurs,
de vision, ou encore de tracking. Elle permet également d'automatiser le processus d'étiquetage de la vérité terrain (ground thruth
labeling), et de générer des scénarios de trafic.
Big data et calcul
parallèle avec MATLAB
28/11/2017 05/12/2017 Soyez toujours plus productif avec MATLAB : tirer parti des fonctionnalités Big Data pour accéder à des gros jeux de données et
accélérer les traitements associés grâce au calcul parallèle.
Déploiement et mise en
production
d’algorithmes MATLAB
21/12/2017 19/12/2017 Découvrez les différentes options qui s'offrent à vous pour partager et déployer des algorithmes MATLAB, afin de les mettre à
disposition de vos collègues, clients ou partenaires,
Modélisation d’une
chaine de traction avec
Powertrain blockset
30/01/2018 01/02/2018 Concevoir et régler un contrôleur moteur, effectuer une calibration moteur sur la base de modèles, évaluer et optimiser la
performance d'une chaine de traction : Powertrain blockset vous simplifie la vie. Mettant à disposition une librairie de moteurs
(essence, diesel, hybride et électrique), contrôleurs et transmissions, elle vous permet de construire rapidement des modèles haut-
niveau et de les tester en simulation sur des profils de mission standardisés (FTP75, NEDC, et JC08).
Gestion de projet pour
le model-based design
15/02/2018 13/02/2018 Simulink devenant la plateforme de conception privilégiée des ingénieurs, il est important de permettre à ces derniers de collaborer
simplement, d'architecturer et de maintenir leur modèles, de gérer leur données, d'automatiser des tâches ou encore de s'interfacer
à des systèmes de gestion de configuration. C'est là que l'outil Simulink Project entre en jeu.
Vérifiez exhaustivement
les algorithmes
développés avec
Simulink
13/03/2018 15/03/2018 Un panel de méthodes de vérification et validation (V&V) est à votre disposition dans l'environnement Simulink, vous permettant de
détecter au plus tôt des erreurs de conception afin de prendre confiance dans vos modèles. Cette session mettra en avant
l'élaboration de jeux de tests, la notion de couverture de modèle, le recours à la preuve formelle pour les exigences critiques ainsi
que la gestion et l'automatisation de plans de tests.
Développement de
composants AUTOSAR
avec Simulink
05/04/2018 03/04/2018 Vous êtes amenés à développer des composants logiciels conformes au standard AUTOSAR ? Venez découvrir les bonnes
pratiques à suivre sous Simulink pour y parvenir, que vous optiez pour une approche top-down ou bottom-up.
Vérification de code
avec Polyspace
29/05/2018 31/05/2018 La criticité et la sûreté de fonctionnement du logiciel embarqué (C/C++) sont des enjeux d'autant plus importants dans le contexte
des ADAS et du véhicule autonome. Comment caractériser exhaustivement la qualité du code développé ? Comment détecter et
corriger les défauts logiciels avant la mise sur le marché du véhicule ? C'est à ces questions que les outils Polyspace répondent.
3
MATLAB– Enhancing Your Productivity
Speed
Workflow
Insight
Verification
Verification
4
New MATLAB Execution Engine
▪ Redesigned execution engine
runs MATLAB code faster
▪ Average performance
improvement of 40% on
76 performance-sensitive
user applications
Verification
6
Speed
Workflow
Insight
MATLAB – Enhancing Your Productivity
Verification
Verification
7
MATLAB Live Editor
▪ New way to interactively create, edit,
and run MATLAB code
▪ Results embedded with the code that
produced them
▪ Share results as interactive documents
▪ Can contain equations, images,
hyperlinks, and formatted text
8
App Designer
▪ Enhanced design environment
▪ Expanded UI component set
▪ Code integration
– Tight synchronization of design and
code views with embedded editing
– New object-based code format
Built on Web Technology
9
Add-On Explorer
▪ Add capabilities to MATLAB, including
community-authored and MathWorks
toolboxes, apps, functions, models,
and hardware support
– Browse and install add-ons
directly from MATLAB
– Access community-authored
content from File Exchange
Verification
10
Custom MATLAB Toolbox Packaging
▪ Package your toolbox as a
single installer file
– Contains all of the code, data, apps,
documentation, and examples
– Checks for dependent files and
automatically includes them
– Documents required products
▪ Included folders and files automatically
appear on path when installed
▪ View details and uninstall toolboxes
with Add-On Manager
12
Git and Subversion Source Control Integration
▪ Manage your code from within
the MATLAB Desktop
▪ Leverage modern source
control capabilities
– GIT and Subversion integration
in Current Folder browser
▪ Use Comparison Tool to view and
merge changes between revisions
Verification
13
Connectivity with Other Languages
MATLABOther LanguagesC/C++, Java, .NET
.NET
JavaPython
MATLAB
Compiler SDK
MATLAB
Coder
++C/C
Python
.c
Verification
14
Speed
Workflow
Insight
MATLAB – Enhancing Your Productivity
Verification
Verification
15
string Array
▪ string class (new) vs. char arrays (existing)
– More memory efficient
– Faster operations
▪ Host of new functions for
common string manipulation
Manipulate, compare, and
store text data efficiently
16
Working with Dates and Times
17
Data access made easy with datastore
▪ Data container that allows to easily
read data that are too large to fit in
the computer’s memory
▪ Incremental read: data loaded
in memory by parts
▪ Data sources of various natures
– Single text file (or collection of text files)
– Database (using Database Toolbox)
18
tall Arrays
▪ New data type in MATLAB
▪ Applicable when:
– Columnar data – with many rows
– Overall data size is too big to fit into memory
– Operations are mathematical/statistical in nature
▪ Statistical and machine learning applications
– Hundreds of functions supported in MATLAB and
Statistics and Machine Learning Toolbox
Tall DataCredit Scoring Prognostics
Process Optimization Fleet Analytics
19
timetable Data Container
▪ Examples
– Test equipment
– Sensor data
– Manufacturing data
– Scientific observations
▪ Challenges working with this data
- Merging data with different time stamps
- Accounting for missing data
- Removing duplicate records
- Managing unevenly spaced data
Sensor 2
00:00:15
00:01:16
00:02:16
Event
00:01:00
00:02:00
00:03:00
Temperature
00:00:00
00:00:01
00:00:02
Sensor 1
00:01:05
00:02:05
00:03:05
Time Temperature Event Sensor1 Sensor2
____________________ ___________ _____ _______ _______
04-Jun-2014 00:01:00 80.9 None 0 0.1
04-Jun-2014 00:02:00 72.5 None 0.01 0.1
04-Jun-2014 00:03:00 74.5 Wind 0.01 0.2
04-Jun-2014 00:04:00 71.5 Wind 0 0.1
04-Jun-2014 00:05:00 73.9 Rain 0 0.1
22
MATLAB– Enhancing Your Productivity
Verification
Verification
Speed
Speed
Workflow
Insight
23
Pause Button
▪ Pause the execution of a program from
the Editor and enter debug mode
– Without having to specify breakpoints in advance
▪ MATLAB pauses execution at the next
executable line of MATLAB code
– Continue button resumes program execution
24
Unit Testing Framework
▪ Write, run, and analyze tests
for your MATLAB programs
– Define how each test checks
values and responds to failures
– Setup and restore system before
and after tests
– Run tests individually or grouped
into a test suite
– Measure MATLAB code performance
▪ Supports either script-based, function-based or
object-based unit tests
25
Simulink– Enhancing Your Productivity
Speed
Workflow
Insight
Verification
Verification
26
Start Page
▪ Create new Simulink models using
templates as starting points to common
modeling approaches
▪ Use fully developed example models as a
reference as you set out to build your own
models
▪ Access most recent Simulink models right
from the start page
Get started or resume work faster by
accessing templates, recent models,
and featured examples
27
Simulink Fast Restart>> set_param(model,'FastRestart','on')
Verification
28
Performance Advisor
▪ Automated tool included in Simulink
▪ Checks its own advice
▪ Many checks have an AutoFix option
▪ Verifies simulation results are
within tolerance
Analyze your model for common
simulation bottlenecks
Verification
29
Speed
Workflow
Insight
Simulink – Enhancing Your Productivity
Verification
Verification
30
Simulink Project
31
Simulink Project Integration with SVN and Git
32
Impact Analysis to Find Dependencies
▪ Analyze modified files to determine set of
files impacted
▪ View impacted files, required files, and all
dependencies
▪ Export list of impacted files to Batch Job
view or MATLAB workspace
Visualize the impact of changes to the
files within your project
33
Model ReferencingPartitioning
Integration Model
Design Model Design Model Design Model
34
Model ReferencingPartitioning
▪ Share common integration model
▪ Enable parallel developments
▪ Facilitate component re-use
35
Model ReferencingUnit Testing
Design Model
Test Harness
36
Model ReferencingUnit Testing
▪ Automated test harness creation
▪ Separate design from testing
▪ Perform deep verification of components
37
Model Reference Conversion Advisor
▪ Guides users through all conversion
steps
▪ Provides detailed information about
problems
▪ Supports automatic fixing of certain
problems
Easier conversion of subsystems to model reference with the Model
Reference Conversion Advisor
38
Simulink Data Dictionary
▪ Change tracking
and differencing
▪ Defined relationship
with SLDD file
▪ Componentization
▪ Scalability and
performance
▪ Integration with
Simulink Projects
Provides
management for
global design data:
Simulink
SLX
FileSLX
File
Model 1
Model 2
Model 3
SLX
File
SLDD
FileSLDD
FileSLDD
FileGlobal Data
39
Simulink Functions
▪ Simulink users can define and access
functions that are reused throughout the
model
▪ Simulink function block is paired with
function caller block to define and call a
function respectively
▪ Simulink function can be directly accessed
from Stateflow as well
Create and call functions
across Simulink and StateflowSimulink Function Block
Function caller block
40
Simulink Units
▪ Specify physical units for Simulink signals
and bus elements at the interfaces of
components such as subsystems, model
references, Stateflow charts and MATLAB
function blocks
▪ Identify unit mismatches at the component
interfaces
▪ Enforce consistency is by restricting the unit
systems for certain components using the
configuration parameter, ‘Allowed unit
systems’
Specify, visualize, and check
consistency of units on interfaces
41
Messages
▪ New message object and queue
▪ Message Viewer block to visualize lifetime of
a message
▪ Signal lines in Simulink to transfer messages
between charts
Model asynchronous operations in state
charts using objects that carry data and
can be queued
» sf_msg_traffic_light
42
Smart Editing Cues
▪ Smart prompts for inserting blocks
upon typing the block name
▪ Easily insert blocks that occur in
pairs Ex: Goto, From pair
▪ Suggests marquee actions when a
group of blocks are selected Ex:
Create Subsystem
Accelerate model building with
just-in-time contextual prompts
Marquee actions
Quick insert & Hot parameters Tear-off cues
Persistent guides
43
Comment Through Block Option
▪ Signal passes through the block
during simulation
▪ Comment out option remains
available
▪ Works on blocks with the same
number of inputs and outputs
Comment a block so that the output
equals the input
Comment Out:
(block gray, badge)
(disconnected)
Comment Through:
(block gray, badge)
(input output)
44
Speed
Workflow
Insight
Simulink – Enhancing Your Productivity
Verification
Verification
45
Interface Display
▪ Easily view, understand and inspect the
interface to a Simulink model
▪ Trace a signal’s path by clicking on the
signal name
▪ Zoom in to see bus elements corresponding
to a bus signal and trace the element’s
signal path
View and trace the input and output
signals of a model or subsystem
46
Rich Annotations
▪ Rich text with:
– Bold, italic, font name, font size, highlight etc.
for subtext
– Bulleted and enumerated lists
– Tables
– Hyperlinks (proper URLs)
– Images
▪ Image annotations with callbacks
▪ Author your content directly in the editor or paste
clipboard content copied for Word, Excel, HTML,
etc.
Add images, tables, and bulleted lists to
your model
47
One-Click Display
▪ Display port value for a signal by clicking it
during simulation for easy debugging
▪ For bus signals, select the signals of interest
before simulation
Click a signal line when the simulation
is running to view the current value
48
New Interface for Scopes
▪ Scope, Floating Scope, and Viewers all
upgraded with new UI
▪ Includes simulation data analysis and
debugging tools
– Cursors
– Measurements
– Triggers
View and debug signals with cursors
and measurements
49
New Simulation Data Inspector
▪ Toolstrip to access and discover signal visualization
actions
▪ Add up to 2 data cursors to monitor signal values
▪ View signal data in the Simulation Data Inspector as
the simulation runs
View live signal data and access visualization options such as data cursors
50
Dashboard Block Library
▪ New library of controls and displays,
including knobs, switches, and gauges
▪ Place blocks directly within the Simulink
Editor
▪ Provide a front-end user interface to the
entire model
Tune and test your simulations with
graphical controls and displays
51
MATLAB– Enhancing Your Productivity
Verification
Verification
Speed
Speed
Workflow
Insight
52
Simulink Test
▪ Build synchronized executable test
environments
▪ Create inputs and assessments based on
logic or temporal conditions
▪ Author, execute, and manage testing
Author, execute and manage
simulation-based testing
Test Harness
Test Sequence Block
Test Manager
53
Model Slicing (requires Simulink Design Verifier)
▪ Understand functional dependencies
▪ Determine interdependencies
▪ Eliminate unneeded items
▪ API support in R2015b
Test and debug complex models