model-based design of industrial applications invited speaker session · 1 aerospace companies 2...

28
1 © 2019 MathWorks GmbH Model-Based Design of Industrial Applications Invited Speaker Session Swiss Federal Institute of Technology Zurich, Switzerland. September 18, 2019 Vasco Lenzi Senior Application Engineer MathWorks Switzerland Dr. Mohamed Anas Engineering Group Manager MathWorks Benelux and Switzerland Dr. Res Jöhr Senior Customer Success Engineer MathWorks Switzerland

Upload: others

Post on 17-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

1© 2019 MathWorks GmbH

Model-Based Design of Industrial Applications

Invited Speaker Session

Swiss Federal Institute of Technology

Zurich, Switzerland.

September 18, 2019

Vasco Lenzi

Senior Application Engineer

MathWorks Switzerland

Dr. Mohamed Anas

Engineering Group Manager

MathWorks Benelux and Switzerland

Dr. Res Jöhr

Senior Customer Success Engineer

MathWorks Switzerland

Page 2: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

2

Expectations, Let’s Interact

▪ Leiv: why does MATLAB index start at 1?

▪ Samuel: See something about Statefow

▪ Michael: why should I spend several thousands, when there is FOSS?

▪ Varin: why do you develop new versions, what is the future of MATLAB?

▪ Manish: I have used Git and Stateflow together, I am unsure as to why this

combination does not work as good as Git directly from terminal

▪ Nicola: we heard in the lecture that more an more C code is generated,

what proportion of the C code is automatically generated, what’s the trend?

▪ Friedrich: how could you use cloud computing from MATLAB, like AWS

Page 3: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

3

Campus-Wide License Overview

▪ License covers all faculty, staff, students and their devices

▪ Access on campus, in lab and field, and at home, including off-network

▪ Annual license

▪ Immediate tool availability for end users via self-serve portal

▪ Lower IT administration overhead

▪ Storage of existing perpetual licenses

MATLAB Drive

Online access

University & lab

computers

Personal Computers

& Mobile Devices

Auto-graded homework

Low-cost hardware support

Self-paced online learning

Cloud Storage &

Sharing

Clusters & HPC

Page 4: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

4

Free MathWorks Online Training @ ETH Zürich

(https://trainingenrollment.mathworks.com/selfEnrollment?code=2I4DV9S0RY14)

Page 5: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

5

Agenda

▪ Model-Based Design in the Industry

▪ Workflows and Example Case Studies

▪ Project and Requirements Management

▪ Techniques for Large-Scale Modelling

▪ Early Verification and Production Code Generation

▪ Software- and Processor- in-the-Loop Techniques

Page 6: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

6

Agenda

▪ Model-Based Design in the Industry

▪ Workflows and Example Case Studies

▪ Project and Requirements Management

▪ Techniques for Large-Scale Modelling

▪ Early Verification and Production Code Generation

▪ Software- and Processor- in-the-Loop Techniques

Page 7: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

7

Three Things to Takeaway!

1. Verify early through Simulation

2. Elaborate Models Incrementally

3. Code and Data Interfaces! Integration Process

Coding Process

Design Process

Requirements Process

Page 8: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

8

CO

NT

INU

OU

S T

ES

TIN

G

& V

ER

IFIC

AT

ION

INTEGRATION

CODE

Structured

Text

VHDL

Verilog

DSP FPGA ASICIndustrial

Control IDE

C, C++

MCU

DESIGN

Multi-Domain Physical Systems

Control Algorithms

Signal Processing Communications

Supervisory Logic

Testing,

Verification,

Validation and

Documentation

Technologies

Multi-Domain

Modelling,

Simulation and

Analysis

Technologies

Code

Generation

Technologies

REQUIREMENTSRESEARCH

Model-Based Design of Industrial Applications

Page 9: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

9

Our Customers

Millions of engineers and scientists worldwide use MATLAB and Simulink.

All of the top 10

aerospace companies2

All of the top 10

auto manufacturers1

Three of the top five

internet companies

1OICA: 2016 World Motor Vehicle Production 2PwC: Aerospace and Defense 2017 Year in Review

90,000+ business,

government, and

university sites

Page 10: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

10

Aero Automotive Biological Sciences

Biotech and

Pharmaceutical Communications

Electronics Energy Production Financial Services Industrial Machinery Medical Devices

Metals, Materials,

Mining Neuroscience Railway Systems Semiconductors Software and Internet

Serving Customers Across Diverse Industries

Page 11: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

11

Industrial Example 1

Page 12: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

12

Hyperloop

“What we Simulate is What we Implement” ABB

▪ “…components belonging to

different engineering domains”

▪ “…connect and integrate Simulink

diagrams with hardware”

▪ “…more with less steps along the

way”

Source: ABBhttps://library.e.abb.com/public/.../AC%20800PEC%20Sales%20Brochure.pdf

Page 13: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

13

Industrial Example 2Optimizing cost with Simulation and Digital Twins

Page 14: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

14

Industrial Example 3

Page 15: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

15

Agenda

▪ Model-Based Design in the Industry

▪ Workflows and Example Case Studies

▪ Project and Requirements Management

▪ Techniques for Large-Scale Modelling

▪ Early Verification and Production Code Generation

▪ Software- and Processor- in-the-Loop Techniques

Page 16: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

16

Agenda

▪ Model-Based Design in the Industry

▪ Workflows and Example Case Studies

▪ Project and Requirements Management

▪ Techniques for Large-Scale Modelling

▪ Early Verification and Production Code Generation

▪ Software- and Processor- in-the-Loop Techniques

Page 17: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

17

Large-scale Modelling

▪ Many teams on the same project

▪ Architecture as the basis of team structure

▪ Incremental planning

▪ Interdependencies

▪ Streamlined sharing

▪ Synchronization among teams

▪ CICD

▪ May more

Page 18: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

18

Architect with Components

Subsystems

Libraries

Model Referencing

Data Stores

Composite Signals

Configuration Reuse

Variant Subsystems

A

Model Architecture

Share with Teams

Many More

Page 19: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

19

Architect with Components

Page 20: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

20

Team Workflows

▪ Source control

▪ Compare and Merge

▪ Dependency analysis

▪ Task automation

Page 21: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

21

Team Workflows: Dependency Analysis

Show Model

Structure

List Products

Required

Highlight Issues

Page 22: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

22

Team Workflows: Dependency Analysis

Show Model

Structure

List Products

Required

Highlight Issues

Page 23: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

23

Metrics DashboardAssess your Project Quality Status

Page 24: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

24

Sharing: Package Your Work

Page 25: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

25

Agenda

▪ Model-Based Design in the Industry

▪ Workflows and Example Case Studies

▪ Project and Requirements Management

▪ Techniques for Large-Scale Modelling

▪ Early Verification and Production Code Generation

▪ Software- and Processor- in-the-Loop Techniques

Page 26: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

26

Validate the Results

Formulate Equations

Identify System Components

System Definition

Construct Simulink Diagram

(Controller and Plant)

Run the Simulation

Tune Controller

Things you have done so far

Page 27: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

27

Example Activities around Code Generation

▪ Incremental model elaboration ensuring the model is “embedded

application aware”

▪ Defining data representation

– simulation vs. code generation behaviour

▪ Generating code

▪ Automating build processes

▪ Integrating external code with generated code

▪ Setting up generated code to interface with components in the run-time

environment

▪ Verifying the generated code

Page 28: Model-Based Design of Industrial Applications Invited Speaker Session · 1 aerospace companies 2 Three of the top five internet companies 1OICA: 2016 World Motor Vehicle Production

28

Concluding Remarks

▪ Identify the problem you are trying to solve

▪ “Rule of Two”

▪ Use models to generate production code

▪ Models are the sole source of truth

▪ Use the transition as a learning opportunity

▪ Focus on design instead of coding

▪ Integrate the development process

▪ Designate a champion

▪ Have a long-term vision

▪ Partner with tools suppliers