Model-Based Design for Controls The MathWorks, Inc. 1

Similar documents
Model-Based Design of a Quadcopter Ryan Gordon

Introduction to Simulink & Stateflow

Model-Based Design for High Integrity Software Development Mike Anthony Senior Application Engineer MathWorks Tucson, AZ USA

Development of AUTOSAR Software Components with Model-Based Design

Introduction to Simulink & Stateflow

EXPLORE ENROLL EXCEL 2017

Simulink as Your Enterprise Simulation Platform

2010 The MathWorks, Inc. Model-Based Design for High Integrity Software and Hardware

ETAS Desk LABCAR Agenda

NI Hardware-in-the-Loop Test

Model Based Design in Automation

Agilent N6171A MATLAB Data Analysis Software for X-Series and PSA Series Signal and Spectrum Analyzers

Frontload the design, V&V and certification of software-intensive mechatronic systems by adopting the Digital Twin approach

Model-Based Design with MATLAB and Simulink to shorten the design of a new infusion pump

Machine Learning Simplified

Simulink as Your Enterprise Simulation Platform

We help our customers Learn, Create and Grow in smart machinery through advanced engineering. RAFA Solutions. Robust and Flexible Advanced Solutions

What s New in MATLAB and Simulink

Get More Out of Gauging. Production Decision Intelligence. On-line.Detailed.Exact. Production Quality Data Base. Save Costs Maximize Quality

Implementing a control application on an FPGA Platform

Development of AUTOSAR Software Components with Model-Based Design

TECHNOLOGY SOLUTIONS ENABLING EXCELLENCE FOR PRODUCT INNOVATION

Data Analysis with MATLAB Dr. Frank Graeber MathWorks Germany

Machinery Edition. Electrical and fluid design software for the machinery market. Machinery

What s new in MATLAB and Simulink

INDUSTRY APPLICATIONS. Cognex delivers unmatched accuracy and ease of use in Vision Guided Robotics applications. Vision Guided Robotics

What s New in MATLAB and Simulink

What s New in MATLAB and Simulink

What s New in MATLAB and Simulink

VHDL Introduction. EL 310 Erkay Savaş Sabancı University

How to build an autonomous anything

Measurement, simulation, virtualization

Real-Time and Embedded Systems

Saber Automotive Overview

What s New in MATLAB and Simulink

Implementation of Digital Instrumentation and Control Systems (I&C) for Nuclear Power Plants (NPPs) using FPGA-technology: Benefits and Solutions

Mathcad : Optimize your design and engineering process.

Mathcad : Optimize your design and engineering process.

Verification and virtual commissioning of configurable handling systems

Novedades de las últimas versiones de MATLAB y Simulink

Service and Support for Science IT

Applying Model-Based Design to Commercial Vehicle Electronics Systems

INDUSTRY EXPERTISE IN AUTOMATION AND ELECTRONICS AUTOMATION

Broadest Range of RFID Printer/Encoders

Realize Your Product Promise. Simplorer

Chapter 1. Introduction to Instrumentation and Process Control (Systems and Applications)

ThingSpeak - IoT Platform with MATLAB Analytics

Chapter 1. Introduction to Instrumentation and Process Control (Systems and Applications)

Innovative Gauging. Best Practice Best Value. In-line Non-laser Non-contact. Robust. 2D/3D. Flexible. Reliable. Exact.

Developing Analytics and Deploying IoT Systems

Model Driven Approaches to Firmware Development in Selex ES. 21 Jan. 2015

PRODUCT INFORMATION PLB PRECISE LOCALIZATION OF PARTS IN BINS. Robot guidance systems

Application of MBD to Development of ECU Prototype for EPS

``Overview. ``The Impact of Software. ``What are Virtual Prototypes? ``Competitive Electronic Products Faster

Engineering Services Outsourcing

Developing and Deploying Analytics for IoT Systems

MATLAB for Data Analytics The MathWorks, Inc. 1

» Software in Tractors: Aspects of Development, Maintenance and Support «

The Role of Real-Time Workshop Embedded Coder in Supporting Cummins Inc. Vision for Model Based Development

What s New in MATLAB and Simulink

Embedded Systems. The Minimum Viable Synergy of Software and Hardware

Software Tools. Mechatronics, Embedded Control System Design, CAD, Finite Element Analysis, Information Technology and Big Data Areas.

Press Release. ETAS Rolls Out New Solutions for Simulink Users

TECHNOLOGY SOLUTIONS ENABLING EXCELLENCE FOR PRODUCT INNOVATION

Certifiable Production Code Development

SILICON THINKING INDUSTRY SOLUTION EXPERIENCE SEMICONDUCTOR COLLABORATIVE DESIGN

Accelerating Xilinx All Programmable FPGA and SoC Design Verification with Blue Pearl Software

Customer Application Specific. Products & Solutions Company.

Xilinx UltraScale MPSoC Architecture

Optimize Your Process Operations by Improving Process Monitoring

Software qualification for digital safety system in KNICS project

Digital Platforms Connecting the Workplace and Management

MathWorks Vision for Systematic Verification and Validation

Environmental Data Cube Support System (EDCSS) Roles and Processes. 20 August 2013

Join us, and drive the future. At the Bruchsal site (near Karlsruhe): Internship, student work placement or thesis in electrical engineering

Sustainable Profitable Growth Balanced and Broad

Agilent VEE Pro 9.2 and Agilent VEE Express 9.2

020L: Superior SH2A Design Process using Model Based Design (MBD), Virtualization and Hardware-in- Loop (HIL) Systems Lab

SOLUTIONS Where innovation drives development

Guided and automated calibration and validation of powertrain systems

Electrical Engineering Résumé. Ted J. Pillera th ST W Lakeville, MN (952)

Model-Sharing in the service of Innovation for the Automotive Industry

Digital Design Methodology (Revisited)

Siemens PLM Software. PLM solutions for the aerospace industry. When you only have one chance to get it right. siemens.com/plm

A-L-V. Presenters, Ford Chassis Controls: Nate Rolfes John Broderick Jeff Cotter. With Ford MBSE Tools & Methods:

Developing Prognostics Algorithms: Data-Based and Model-Based Approaches

Utilization of Simulink Verification and Validation (V&V) and Simulink Design Verifier (SDV) for HVAC Controls Software

Development of a Cooperative Tractor-Implement Combination

EMC 2 Living Lab Automotive

Sample. NI TestStand TM I: Introduction Course Manual

DELMIA V5.18 expands IBM Product Lifecycle Management digital manufacturing

Global Support and Services. With you every step of the way

Training. Advancing yourself

fingermetrica Built-In-Fingerprint Biometric Solutions Biometric Recognition Embedded Algorithm Library

Instrumentation & Controls. Siemens Power Plant Automation -- SPPA-T3000. Technical Highlights. The New Benchmark in Control.

The Impact of Modelling and Simulation in Airbus Product Development

Global Automotive E/E Standard. Rick Flores, General Motors, AUTOSAR Steering Committee Open Architecture Summit Washington, D.C.

Reducing Complexity in Connected and Autonomous Vehicles

GROWTH AREAS FOR IOT AND IMPACT ON FD SOI

Shenoy R K Senior Vice President, Powertrain Electronics Robert Bosch Engineering and Business Solutions ltd.

Transcription:

Model-Based Design for Controls 2011 The MathWorks, Inc. 1

MathWorks at a Glance Headquarters: Natick, Massachusetts US Other U.S. Locations: California; Michigan; Texas; Washington, DC Europe: France, Germany, Italy, Spain, the Netherlands, Sweden, Switzerland, U.K. Asia-Pacific: Australia, China, India, Japan, Korea Worldwide training and consulting Earth s topography on an equidistant cylindrical projection, created with MATLAB and Mapping Toolbox. Distributors in 25 countries 2

Key Capabilities Drive MathWorks Business Verification, Validation, and Test Test and measurement Model checking Code verification Qualification kits Automatic Code Generation Rapid prototyping and HIL Embedded software DSP software VHDL/Verilog PLC code System Modeling and Simulation Simulink DSP designs State charts Physical Communication systems modeling Discrete-event modeling Video processing Data Analysis and Algorithm Development Control design Signal processing Optimization Statistics Image processing Computational finance Computational biology Technical Computing MATLAB Application deployment Student version Instrument and database connectivity Distributed and parallel computing MATLAB Mobile for iphone 1985 1990 1995 2000 2005 2010 Founded in 1984 3

MathWorks Today Revenues ~$600M in 2010 Privately held More than 2000 employees worldwide Worldwide revenue balance: 45% North America, 55% international More than 1 million users in 175+ countries 1984 1989 1994 1999 2004 2009 4

Key Industries Aerospace and defense Automotive Biotech and pharmaceutical Communications Education Electronics and semiconductors Energy production Financial services Industrial automation and machinery 5

Deeply Rooted in Education 3500+ universities around the world 1200+ MATLAB and Simulink based books Academic support for research, fellowships, student competitions, and curriculum development Benefits for Industry: Everyone that comes in as a new hire already knows MATLAB, because they all had it in college. The learning curve is significantly lessened as a result. Jeff Corn, Chief of Engineering Projects Section, U.S. Air Force Every year, tens of thousands of engineers enter the workforce with MathWorks product skills and experience. Students learn theory and techniques while using MATLAB and Simulink. 6

Core MathWorks Products The leading environment for technical computing The industry-standard, high-level programming language for algorithm development Numeric computation Data analysis and visualization Toolboxes for signal and image processing, statistics, optimization, symbolic math, and other areas Foundation of MathWorks products 7

Core MathWorks Products The leading environment for modeling, simulating, and implementing dynamic and embedded systems Linear, nonlinear, discrete-time, continuous-time, hybrid, and multirate systems Foundation for Model-Based Design, including physical-domain modeling, automatic code generation, and verification and validation Open architecture for integrating models from other tools Applications in controls, signal processing, communications, and other system engineering areas 8

Continuous Improvement Consulting Services Accelerating return on investment A global team of experts supporting every stage of tool and process integration Process and Technology Standardization Process and Technology Automation Process Assessment Advisory Services Component Deployment Full Application Deployment Jumpstart Migration Planning Research Advanced Engineering Product Engineering Teams Supplier Involvement 9

Training Services Exploit the full potential of MathWorks products Flexible delivery options: Public training available worldwide Onsite training with standard or customized courses Web-based training with live, interactive instructor-led courses Self-paced interactive online training More than 30 course offerings: Introductory and intermediate training on MATLAB, Simulink, Stateflow, code generation, and Polyspace products Specialized courses in control design, signal processing, parallel computing, code generation, communications, financial analysis, and other areas 10

MATLAB Central Community for MATLAB and Simulink users Over 1 million visits per month File Exchange Upload/download access to free files including MATLAB code, Simulink models, and documents Ability to rate files, comment, and ask questions More than 12,500 contributed files, 300 submissions per month, 50,000 downloads per month Newsgroup Blogs Web forum for technical discussions about MathWorks products More than 300 posts per day Commentary from engineers who design, build, and support MathWorks products Open conversation at blogs.mathworks.com Based on February 2011 data 11

Connections Program More than 400 add-on products and services that complement and extend MathWorks products: Specialized third-party toolboxes for MATLAB Interfaces to third-party software and hardware products Specialized training courses and consulting services System integrators and suppliers that incorporate MathWorks products 12

Book Program More than 1200 books for educational and professional use, in 26 languages Controls Signal processing Image processing Biosciences Communications Mechanical engineering Mathematics Aerospace engineering Environmental sciences Chemistry Finance Electronics 13

Technical Support Resources Over 100 support engineers All with MS degrees (EE, ME, CS) Local support in North America, Europe, and Asia Comprehensive, product-specific Web support resources High customer satisfaction 95% of calls answered within three minutes 70% of issues resolved within 24 hours 80% of customers surveyed rate satisfaction at 80 100% 14

MathWorks Product Overview Simulink Product Family View full product list Application-Specific Products MATLAB Product Family 15

What are we doing today? 16

xpc Target runs Simulink in hard real-time 1 2 Host computer with MATLAB xpc Target on Target Computer 3 Ethernet or RS 232 Environment allows the real-time execution of Simulink models on a separate PC-based target computer 17

Today s Agenda Introduction to Simulink Plant Modeling Control and Real Time Testing Closing remarks 18

Traditional Development Process RESEARCH REQUIREMENTS SPECIFICATIONS Requirement Documents Difficult to analyze Difficult to manage as they change DESIGN Paper Specifications Easy to misinterpret Difficult to integrate with design EDA Electrical Components Algorithm Design Embeddable Algorithms MCAD/ MCAE Mechanical Components Physical Prototypes Incomplete and expensive Prevents rapid iteration No system-level testing IMPLEMENTATION Manual Coding Time consuming Introduces defects and variance Difficult to reuse C/C++ Embedded Software Traditional Testing Design and integration issues found late Difficult to feed insights back into design process Traceability INTEGRATION AND TEST 19

Model-Based Design- Describe the system dynamics DESIGN Model-Based Design uses block diagrams to mathematically model the system behavior. Electrical Components Embedded Software Control Algorithms Mechanical Components You design the way the system should perform. 20

Model-Based Design- Design and test using simulation RESEARCH DESIGN REQUIREMENTS Requirements are linked to the model. Environmental Models Mechanical Electrical Control Algorithms Supervisory Logic Detail is added from specific domains to refine the model. Intellectual property and engineering data are reused from existing designs and CAE tools, such as CAD, FEA, and SPICE models. Design and test control algorithms using the model. 21

Model-Based Design- Test and validate in real-time RESEARCH REQUIREMENTS DESIGN Environmental Models Mechanical Electrical Control Algorithms Supervisory Logic Automatically generate code from the simulation model for real-time testing of the control algorithms. Automatically generate code from the simulation model for real-time system simulation of hardware for testing the real microcontroller, FPGA, or PLC REAL-TIME TESTING C, C++ VHDL, Verilog Structured Text MCU DSP FPGA ASIC PLC 22

Model-Based Design- Implement embedded software RESEARCH C, C++ DESIGN Environmental Models Mechanical Control Algorithms Supervisory Logic Electrical IMPLEMENTATION VHDL, Verilog REQUIREMENTS Structured Text TEST & VERIFICATION Automatically generate code from the simulation model for implementing directly on production targets: Microcontrollers FPGAs PLC IDEs MCU DSP FPGA ASIC PLC INTEGRATION 23

Model-Based Design Plant Modeling Control Design Testing SolidWorks SimMechanics Simscape SimElectronics SimPowerSystems Simulink Design Optimization Optimization Toolbox Simulink Control Design Control System Toolbox Simulink Design Optimization Optimization Toolbox xpc Target MATLAB Coder Simulink Coder DSP System Toolbox 24

MAN Roland Develops High-Precision Commercial Printing Press Controller with MathWorks Tools Challenge To implement a new design process to support development of a precision controller for a state-of-the-art commercial printing press Solution Use MathWorks products for Model-Based Design to design and model the controller, run real-time simulations, and deploy a production system Results Development time reduced by one year Design iterations completed in minutes, not weeks Error analysis streamlined for MAN Roland customers Link to user story MAN Roland s state-of-the-art printing press. MathWorks tools made it easy for us to test ideas, introduce new algorithms, and compare one controller against another... We could quickly change the structure of the controller and immediately see the results. The ability to perform rapid iterations enabled us to optimize quality and functionality while greatly reducing development cycle time." Thomas Debes MAN Roland 25

We can import the entire mechanical design directly from a CAD tool SolidWorks Model SimMechanics Model The translator automatically generates the SimMechanics model using CAD information 28

Now, for our robot to be of any use, it has to be able to move We can include the effects of actuator and sensor dynamics in the simulation model 29

And we can test and verify the overall system performance in simulation reference + S1 S2 - S3 controller Generate test vector arrays and verify the controller design against the performance specifications given for the system 30

Modeling Dynamic Systems: two approaches Data-Driven Modeling Use system test data to derive a mathematical representation 1.4e9 G( s) e 1 2.8e7s 0.1s 31

Modeling Dynamic Systems: two approaches First-Principles Modeling Use an understanding of the system s physics to derive a mathematical representation V+ V- 32

Both have advantages & disadvantages Data-Driven Modeling Complete Modeling Environment First-Principles Modeling Advantages: Fast Accurate Disadvantages: Requires plant Requires data acquisition system Advantages: Insight in behavior Physical parameters Disadvantages: Time-consuming Requires expertise 33

Tools that span both modeling approaches Complete Modeling Environment Data-Driven System Identification Toolbox Test and Measurement Tools Simulink Design Optimization First-Principles Simulink Physical Modeling Tools 34

SimMechanics SimDriveline SimElectronics SimPowerSystems SimHydraulics SimPowerSystems SimMechanics SimDriveline SimHydraulics SimElectronics Physical Systems in Simulink Simscape Simscape MATLAB, Simulink Electrical power systems Multidomain physical systems Fluid power and control Mechanical dynamics (3-D) Drivetrain systems (1-D) Electromechanical and electronic systems 35

Estimation of DC Motor Parameters Untuned Parameters Resistance Inductance Damping Intertia Tune Parameters with Optimization 36

Break 2011 The MathWorks, Inc. 37

DC Motor Controller Design 38

Or we can fine tune our controller gains by optimizing the system response reference + S1 S2 - S3 controller Use Simulink Design Optimization to set graphical constraints on relevant signals and optimize the controller gains against the nonlinear system response 39

From Simulation to Real-Time Testing Models designed in Simulink and Stateflow You want to run, test, and prove your Simulink design with your hardware under test at its normal operating frequency, speed, or timing. But how can you do this testing in real-time?? 40

How can you do this testing in real-time? Use xpc Target! xpc Target and xpc Target Turnkey systems create a hard real time environment for testing your Simulink models. 41

Real-Time Testing Scenarios: Functional Rapid Prototyping Code Generation Execution Host/Target Real-time Wiring and Signal Conditioning Real-Time Target Computer Production Plant Hardware 42

Real-Time Testing Scenarios: Hardware-in-the-Loop (HIL) Simulation Execution Host/Target/Target Real-time Code Generation Code Generation Wiring and Signal Conditioning ECU or MicroController Real-Time Target Computer 43

xpc Target runs Simulink in hard real-time 1 2 Host computer with MATLAB xpc Target on Target Computer 3 Ethernet or RS 232 Environment allows the real-time execution of Simulink models on a separate PC-based target computer 44

xpc Target enables tuning parameters in real-time Host computer with MATLAB Host computer with MATLAB Ethernet or RS 232 xpc Target on Target Computer xpc Target on Target Computer Ethernet or RS 232 Environment provides interactive access between the real-time application and the host computer Allows live parameter tuning, control from the original Simulink model and offline analysis support in MATLAB. 45

xpc Target enables quick data analysis with MATLAB 2 Host computer with MATLAB xpc Target on Target Computer 4 Ethernet or RS 232 3 1 2 Environment provides interactive access between the real-time application and the host computer Allows live parameter tuning, control from the original Simulink model and offline analysis support in MATLAB. 46

xpc Target enables quick data analysis with MATLAB Host computer with MATLAB xpc Target on Target Computer Ethernet or RS 232 Environment provides numerous I/O device driver blocks Blocks are easily configurable within the Simulink model and communicate with actual hardware in real-time. 47

xpc Target provides I/O driver blocks in Simulink xpc Target on Target Computer Environment provides numerous I/O device driver blocks Blocks are easily configurable within the Simulink model and communicate with actual hardware in real-time. 48

Why xpc Target Turnkey? Complete, fully assembled, real-time testing solution Combines xpc Target (software) with a real-time target machine and IO modules (hardware) Optimized for Simulink and xpc Target xpc Target Turnkey 49

What is xpc Target Turnkey? Portfolio of real-time target machines Assembled to meet your performance and I/O requirements Various form factors for office, lab, and field use Made and optimized for the use with Simulink and xpc Target 50

What is xpc Target Turnkey Wide range of I/O modules installed in your target machine and fully tested IO Type Analog Digital Serial Protocols Audio/Speech Shared Memory Various Configurable FPGA Functionality High-resolution, high-speed, simultaneous sampling TTL, 12V, 24V, high-drive, opto-coupled RS232, RS422, RS485, SDLC, HDLC SPI, I2C, SSI, CAN, Ethernet, UDP, J1939, ARINC 429, MIL-STD-1553 Audio/Speech optimized analog IO modules, XLR panels Reflective Memory for high speed data transfer in multi-processor systems LVDT/RVDT, Synchro/Resolver, 3 phase motor control Pulse train (PWM, capture, quadrature decoding, hall effect) Event based interrupts Analog I/O with lowest latency and/or special synchronization schemes Algorithmic implementations for very fast inner control loops 51

FPGA Programming for xpc Target Programming FPGA boards for xpc Target Turnkey real-time target machines using Simulink HDL Coder Workflow Advisor. Execute high-speed algorithms on an FPGA connected to a model running in real time with xpc Target. Automatically program the FPGA without needing to know HDL code - ideal for functional testing and verification. Quick reconfiguration of FPGA IO promotes a flexible real-time testing environment. Compatible with both new and existing xpc Target Turnkey systems. 52

Next Steps Visit www.mathworks.com Product literature MATLAB Central Live and recorded webinars Use the eval form to request more information Passcodes to for evaluation of products Follow-up meeting or phone call Pricing and licensing Training; public and on-site classes Feel free to ask questions afterwards 53