Design and Implementation of Motor Control Systems with MATLAB, Simulink, and TI C2000 DSPs

Similar documents
Product Development Flow Including Model- Based Design and System-Level Functional Verification

Schnell und effizient durch Automatische Codegenerierung

Echtzeittesten mit MathWorks leicht gemacht Simulink Real-Time Tobias Kuschmider Applikationsingenieur

Entwicklung und Testen von Robotischen Anwendungen mit MATLAB und Simulink Maximilian Apfelbeck, MathWorks

Integrating MATLAB into your C/C++ Product Development Workflow Andy Thé Product Marketing Image Processing Applications

Converting Models from Floating Point to Fixed Point for Production Code Generation

Best Practices for Verification, Validation, and Test in Model- Based Design

Development of AUTOSAR Software Components within Model-Based Design

Introduction to MATLAB Gergely Somlay Application Engineer

Eli Levi Eli Levi holds B.Sc.EE from the Technion.Working as field application engineer for Systematics, Specializing in HDL design with MATLAB and

MathWorks Products and Prices North America Academic March 2013

Lecture 3 - Model-based Control Engineering

Software Development Principles Applied to Graphical Model Development

Software Development with Real- Time Workshop Embedded Coder Nigel Holliday Thales Missile Electronics. Missile Electronics

Introduction to Simulink & Stateflow. Coorous Mohtadi

Model Based System Engineering (MBSE) For Accelerating Software Development Cycle

Data Analysis with MATLAB The MathWorks, Inc. 1

Lecture 9 Modeling, Simulation, and Systems Engineering

Best practices for developing DO-178 compliant software using Model-Based Design

Introduction to RACE FUELS Hans-Christian von der Wense Munich, Germany

Making model-based development a reality: The development of NEC Electronics' automotive system development environment in conjunction with MATLAB

Why Adopt Model-Based Design for Embedded Control Software Development?

Multi-domain Model-driven Development Developing Electrical Propulsion System at Volvo Cars

Embedded Vision on FPGAs The MathWorks, Inc. 1

Agenda. Michele Taliercio, Il circuito Integrato, Novembre 2001

Multi-Konzeptionelle Verwendung von Low-Cost Hardware in der Lehre Dr.-Ing. Daniel Weida, MathWorks

Customer Experience. Silicon. Support & Professional Eng. Services. Freescale Provided SW & Solutions

Physical Modeling with SimScape

Model-based system-on-chip design on Altera and Xilinx platforms

Caterpillar Automatic Code Generation

Model-Based Design for Hybrid Electric Vehicle Systems

Best Practices for Adopting Model-Based Design in Electronic System Development

Hardware in the Loop (HIL) Testing VU 2.0, , WS 2008/09

Integrated Model-based Software Development and Testing with CSD and MTest

dspic30f4012 Microcontroller

EHOOKS Prototyping is Rapid Again

How To Build A Trading Engine In A Microsoft Microsoft Matlab (A Trading Engine)

A Case Study of Application Development and Production Code Generation for a Telematics ECU with Full Unified Diagnostics Services

How To Develop A Powerpc/Powerpc/Ada 95/C++/Adma 83/C/C95/A95/C99/A83/A84/A85/A86/A75/A74

PLM voor HTE en mechatronics best practices voor engineeringsmethodiek

Advanced Electronic Platform Technologies Supporting Development of Complicated Vehicle Control Software

DS1104 R&D Controller Board

Automatic ASAM MCD-3 supported test. PikeTec GmbH Dr. Jens Lüdemann

VELOCITY LAB TM Embedded Development Ecosystem

In-Vehicle Networking

FlexRay A Communications Network for Automotive Control Systems

Integrating Legacy Code / Models with Model Based Development Using Rhapsody

Die wichtigsten Use Cases für MISRA, HIS, SQO, IEC, ISO und Co. - Warum Polyspace DIE Embedded Code-Verifikationslösung ist.

Efficient and Faster PLC Software Development Process for Automotive industry. Demetrio Cortese IVECO Embedded Software Design

Automotive Software Engineering

Software Production. Industrialized integration and validation of TargetLink models for series production

Embedded Software development Process and Tools:

AN EVALUATION OF MODEL-BASED SOFTWARE SYNTHESIS FROM SIMULINK MODELS FOR EMBEDDED VIDEO APPLICATIONS

Automotive Software Development Challenges Virtualisation and Embedded Security

Aircraft & Defense Vehicle Simulation Lab

Model-Driven Software Development for Robotics: an overview

AUTOSAR Seminar WS2008/ Assignment: Simulation of Automotive Systems in the Context of AUTOSAR

Digital Systems Design! Lecture 1 - Introduction!!

ANSYS SCADE Model-Based Development Solutions for AUTOMOTIVE. Critical Systems & Software Development Solutions

Java Embedded Applications

A highly integrated UAV avionics system 8 Fourth Street PO Box 1500 Hood River, OR (541) phone (541) fax CCT@gorge.

Electronic system-level development: Finding the right mix of solutions for the right mix of engineers.

Embedded Systems Engineering Certificate Program

Introduction to MATLAB for Data Analysis and Visualization

NI Platform for automotive measurement and test applications

Performance Study based on Matlab Modeling for Hybrid Electric Vehicles

Freescale Semiconductor, I

Service Oriented Architecture for Agricultural Vehicles

DAQ in MATLAB HANS-PETTER HALVORSEN,

Design Data Management in Model-Based Design

MathWorks Automotive Conference 2015 Simon Fürst, 2015/09/24. MODEL-BASED SOFTWARE DEVELOPMENT: AN OEM S PERSPECTIVE.

An Overview of Hardware-In-the-Loop Testing Systems at Visteon

SYSTEMS, CONTROL AND MECHATRONICS

Product Information CANape Option Simulink XCP Server

Embedded Development Tools

RESEARCH CENTER OF VEHICLE INDUSTRY

GEDAE TM - A Graphical Programming and Autocode Generation Tool for Signal Processor Applications

Automating Code Reviews with Simulink Code Inspector

Machine Learning with MATLAB David Willingham Application Engineer

What s New in MATLAB and Simulink

Modeling a GPS Receiver Using SystemC

HYDRAULIC ARM MODELING VIA MATLAB SIMHYDRAULICS

Using big data in automotive engineering?

Telelogic White Paper. Strategic QA. Steps to Effective Software Quality Assurance. Dominic Tavassoli, Telelogic 1.0. July 2007

TÜ V Rheinland Industrie Service

2015 The MathWorks, Inc. 1

I can make just such ones if I had tools, and I could make tools if I had tools. -Eli Whitney

How To Design An Image Processing System On A Chip

Hardware Virtualization for Pre-Silicon Software Development in Automotive Electronics

Power inverters: Efficient energy transformation through efficient TargetLink code

A User s Experience with Simulink and Stateflow for Real-Time Embedded Applications

Introduction CHAPTER 1

Delivering Software Quality and Security through Test, Analysis and Requirements Traceability

OPC COMMUNICATION IN REAL TIME

Dr. Barry W. Boehm USC Center for Software Engineering

Model Based Software Development for DDG 1000 Advanced Gun System

Advanced Techniques for Simulating ECU C-code on the PC

Real Time Developer Studio. Emmanuel Gaudin

DRV8312-C2-KIT How to Run Guide

MAJORS: Computer Engineering, Computer Science, Electrical Engineering

Transcription:

Design and Implementation of Motor Control Systems with MATLAB, Simulink, and TI C2000 DSPs A Model-Based Design Approach Jing Wu Applications Engineer

DEMO - From Models to Hardware Design and Implementation of a Permanent Magnet Synchronous Motor Controller PMSM F2808 ezdsp Knob Power Supply

Agenda Model Based Design w/ MATLAB and Simulink Overcome today s design challenges Motor Control Systems Design; a PMSM example 4 Steps to design and implement your system Design with simulation Rapid Prototyping Verify your code Generate production code Validate and verify your system Summary and Next Step

Today s Design Challenges Increasing complexity Standardization Security Intensified Competition Time-to-market pressure Cut product costs Preserve product quality Design team integration Analog/Mixed-Signal, digital hardware, DSP/control software

From Traditional Embedded System Development to Model-Based Design Requirements and Specifications Environment Environmentmodels models Design System SystemBehavior Behaviormodels Executable models - Unambiguous, one truth - Links to textual requirements Environment Environmentmodels models Physical Physical Components Componentsmodels models Algorithms Algorithms Simulation - Reduces need for physical prototypes - Enables systematic what-if analysis C, C, C++ C++ Algorithms Algorithms Generate Generate Implementation Generate Generate VHDL, VHDL, Verilog Verilog Test and Verification MCU MCU DSP DSP Automatic code generation - Reduces time, effort - Enables code reuse - Minimizes coding errors

Model Based Design Workflow Requirements and Specifications Design Design Environment Environmentmodels models Environment System SystemBehavior Behaviormodels Executable models - Unambiguous, one truth - Links to textual requirements Environment Environmentmodels models Physical Physical Components Componentsmodels models Algorithms Algorithms Simulation - Reduces need for physical prototypes - Enables systematic what-if analysis Physical Components MCU MCU Generate Generate Generate Embedded Software C, C, C++ C++ Algorithms DSP DSP Algorithms Algorithms Implementation Generate Generate Generate VHDL, VHDL, Verilog Verilog FPGA FPGA MCU DSP Automatic code generation Digital Electronics C, C++ VHDL, Verilog - Reduces Integration time, effort - Enables code reuse - Minimizes Implement coding errors ASIC ASIC Test and Verification

Model Based Design Workflow Requirements Design Environment Physical Components Algorithms Generate Generate Embedded Software Digital Electronics C, C++ VHDL, Verilog MCU DSP Integration Implement Test Environments Continuous V&V

Model-Based Design with MATLAB and Simulink

MATLAB Product Family The Platform for Model-Based Design Analysis Visualization MATLAB: Technical computing environment Data Reporting & Documentation Software *Languages *Applications Deployment Hardware

Simulink for Model-Based Design Simulink: Graphical, modeling and simulation environment Multi Domain Modeling Rapid Prototyping MATLAB Products Hardware in the loop Embedded Systems

Trace Between Code and Specification

Complex Timing and Concurrency Complex timing Feedback Asynchronous edge triggered blocks Multi-rate digital with arbitrary sample rates Concurrency True expression of parallelism Important for whole system or hardware sub-system design

Who is Using Model-Based Design and Code Generation and for What Type of Application Big companies as well as startups Toyota BAE Intacton, Duhyney General applications as well as safety critical applications Control, audio, video, medical, process DO178B, Autosar, ABS systems

Toyota Uses MathWorks Tools to Increase Quality, Reduce Costs, and Speed Time to Market of New Vehicles Challenge To speed up design, increase quality, and reduce R&D costs by finding an alternative to traditional design methods Solution Use MathWorks tools for control design to prototype, model, test, and refine control strategies in an integrated design environment Results Deliver a better product to market faster and at a lower cost Reduced time to embedded code Forge a pathway to innovation MATLAB, Simulink, and Stateflow have become the de facto standard at Toyota for simulation, data processing, and controls design. It would be impossible to list all of the applications for these tools at Toyota. Akira Ohata Toyota

Safety-Critical Certification More than one million lines of automatically generated flight code certified to DO-178B within past year Honeywell, FAA Software Tools Forum, May 2004 http://www.mathworks.com/company/newsletters/aero_digest/aug04/honeywells.pdf

Successful Deployments of Model-Based Design Caterpillar Engine and Machine Control DaimlerChrysler Cruise Control, Trucks Body Control, Cars Delphi Climate Control General Motors Powertrain ECU Software Jaguar Body Controls Motorola Seats, Battery, and Chassis Controls Boeing Radar, Imaging and Controls Honeywell DO178B Safety Critical Systems Lockheed Martin Flight Controls, Joint Strike Fighter NASA Hyper-X Achieved SEI CMM Level 5 with MBD Northrop Grumman UAV and Radar Systems RealTek Audio system CODECs Sandia FPGA-based Radar Systems Siemens Chassis Controls for Commercial Vehicles Toyota Powertrain ECU Software Visteon Powertrain Controls and Audio Systems For a full list of user stories, see http://www.mathworks.com/company/user_stories

Motor Control Systems with MATLAB, Simulink, and TI C2000 DSPs

MATLAB, Simulink, and TI C2000 DSPs MathWorks Modeling Environment MATLAB Simulink Stateflow Link for Code Composer Studio Embedded C-code generation Target for TI C2000 Texas Instruments Code Composer Studio Environment C/ASM Code Compile & Link Debug Down load TI C2000 DSP

4 Steps of Design 1. Design with simulation 2. Rapid Prototyping 3. Verify your code 4. Generate production code

STEP 1 - Simulate controller and electro-mechanical plant models to verify specification and optimize system performance. Controller Performance System Performance u + - Controller Actuators Electrical Mechanical Device Plant Sensors y

A PMSM System - Design and Tune through Simulation Design Fixed-Point Controller Specify Motor (Plant) Dynamics

Specify Tests and Visualize Results

Algorithm Specifications and Reuse Design with Simulation Generate Code for Production Generate Code for Rapid Prototyping

STEP 2 - Rapid Prototyping - Target Support Package TC2 for testing in a real environment Models Algorithm Specification Processor Specifications Code Embedded C-code Generation Algorithm Implementation Target for TI C2000 Scheduler and Device Specific Drivers

Rapid Prototyping - Asynchronous Scheduler and Device Drivers: Synchronizing ADC and PWM for F2808

Target Host Communications for Tuning and Monitoring Target Side Model Generated Code runs on DSP Host Side Model Model executes on PC Monitor or tune low-rate data CAN, SCI, RTDX Write to channel Read from channel

STEP 3 - Code Verification using Processor-In-the-Loop Testing (PIL) Simulink Test Bench Test Signals Algorithm Verifications PIL Interface CCS Test Bench Link for CCS Algorithm Code

Need for Code Verification Target C compiler optimization settings Code generation optimization settings Integration of custom code Defects in hardware, compiler, linker, or code generator

STEP 4 - Production Code Generation Method 1:Generate Standalone Code Models Algorithm Specification Processor Specifications Code Flash (Standalone) Embedded C-code Generation Algorithm Implementation Target for TI C2000 Scheduler and Device Specific Drivers

Production Code Generation: Method 2 Algorithm Export for Integration with your Drivers and Scheduler Models Algorithm Specification Processor Specifications Code Flash (Standalone) Embedded C-code Generation Algorithm Implementation Scheduler and Device Specific Drivers

Verify and Validate Requirements Design model Coverage Report Test harness model Automatically generate code Integrate test harness with design Target Target processor ECU Target Code Execute test cases Processor-in-the-loop Software-in-the-loop Hardware-in-the-loop

Summary and Next Steps

Addressing Embedded Programming Challenges Challenge Processor specific code Production Code Deployment Execution speed from Flash Verification of Code Execution Asynchronous Scheduling Response TFL and Legacy Code Tool Generate code for deployment to Flash Ability to assign data and functions to be copied from Flash to RAM Processor-in-the-Loop testing Capture and act upon hardware and software interrupts

Model-Based Design Benefits Model-Based Design Executable specification Design with simulation Implementation through code generation Continuous test and verification Embedded Software C, C++ MCU DSP Design Environment Physical Components Algorithms GenerateGenerate Digital Electronics I VHDL, Verilog Implement Innovation Rapid design iterations What-if studies Unique features and differentiators Quality Reduce design errors Minimize hand coding errors Improve communication internally and externally Cost Reduce expensive physical prototypes Reduce re-work Reduce testing Time-to-market Get it right the first time

Production Code Deployment Example applications of production deployment include: Engine and transmission control Hybrid electric vehicle battery control Commercial aircraft fly-by-wire system, certified to Level A DO178B

Summary and Next Steps Some of the MathWorks Products Featured Today: MATLAB, Simulink, Real-Time Workshop Embedded Coder Embedded IDE Link CC (for use with Code Composer Studio) Target Support Package TC2 (for use with TI C2000) Next Steps 1. Get more information www.mathworks.com/ applications/ controldesign/ Watch a free webinar: www.mathworks.com/webinars 2. Contact your MathWorks Sales rep Arrange a customer visit with MathWorks engineers to help your company save money and time to market Thank You!

From Models to Hardware Design and Implementation of a Permanent Magnet Synchronous Motor Controller PMSM F2808 ezdsp Knob Power Supply

Modeling Dynamic Systems in Simulink Modeling Approaches First Principles Modeling Data-Driven Modeling Simulink Simscape SimMechanics SimDriveline SimHydraulics SimPowerSystems Simulink Parameter Estimation System Identification Toolbox Tools for Modeling Dynamic Systems Neural Network Toolbox

Thank You!