Real-Time Testing Made Easy with Simulink Real-Time

Similar documents
When to use an FPGA to prototype a controller and how to start

Getting to Smart Paul Barnard Design Automation

From Antenna to Bits:

Prototyping Unit for Modelbased Applications

2015 The MathWorks, Inc. 1

What s Behind 5G Wireless Communications?

A Model-Based Development Environment and Its Application in Engine Control

RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES

EVS30 Symposium. Anselme Lebrun 1, Khaled Douzane 2

Model-Based Design for Medical Applications. Rob Reilink, M.Sc Ph.D

Pramod Kumar Naik Senior Application Engineer MathWorks Products

Von der Idee bis zur Umsetzung in einer Entwicklungsumgebung State of the Art von Dr. Simon Ginsburg

Bridge RF Design and Test Applications with NI SDR Platforms

Hardware Implementation of Automatic Control Systems using FPGAs

EE25266 ASIC/FPGA Chip Design. Designing a FIR Filter, FPGA in the Loop, Ethernet

The University of Wisconsin-Platteville

5G R&D at Huawei: An Insider Look

Stratix Filtering Reference Design

Cyclone II Filtering Lab

Rapid FPGA Modem Design Techniques For SDRs Using Altera DSP Builder

EFFICIENT FPGA IMPLEMENTATION OF 2 ND ORDER DIGITAL CONTROLLERS USING MATLAB/SIMULINK

Laboratory set-up for Real-Time study of Electric Drives with Integrated Interfaces for Test and Measurement

Hardware in the Loop Simulation for Unmanned Aerial Vehicles

SpectraTronix C700. Modular Test & Development Platform. Ideal Solution for Cognitive Radio, DSP, Wireless Communications & Massive MIMO Applications

A K D S E R V O D R I V E

Energy autonomous wireless sensors: InterSync Project. FIMA Autumn Conference 2011, Nov 23 rd, 2011, Tampere Vesa Pentikäinen VTT

David Howarth. Business Development Manager Americas

Design of an electronic platform based on FPGA-DSP for motion control applications

Validation of Frequency- and Time-domain Fidelity of an Ultra-low Latency Hardware-in-the-Loop (HIL) Emulator

Model-Based Design as an Enabler for Supply Chain Collaboration

Rapid Control Prototyping using MATLAB/Simulink and a DSP-based Motor Controller*

A Simulink/SMASH co-simulation interface Version October 2003

Automotive Control Solution for Brushless DC Motors

CHAPTER 4 FIELD PROGRAMMABLE GATE ARRAY IMPLEMENTATION OF FIVE LEVEL CASCADED MULTILEVEL INVERTER

Training Schedule. Robotic System Design using Arduino Platform

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

SERVO MOTOR CONTROL TRAINER

Stratix II Filtering Lab

Ensemble HPe/CP/MP. Networked, Panel-Mount Drives PWM. Network drives through a high-speed serial interface to coordinate up to ten axes of motion

DLR s ROboMObil HIL Simulator Using FMI 2.0 Technology on dspace SCALEXIO Real-time Hardware. Andreas Pillekeit - dspace. Jonathan Brembeck DLR

Low-Power Communications and Neural Spike Sorting

FPGA & Pulse Width Modulation. Digital Logic. Programing the FPGA 7/23/2015. Time Allotment During the First 14 Weeks of Our Advanced Lab Course

Observer-based Engine Cooling Control System (OBCOOL) Functional Description & System Block Diagram. Students: Andrew Fouts & Kurtis Liggett

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

RF and Microwave Test and Design Roadshow Cape Town & Midrand

RAPID PROTOTYPING OF CONTROL SYSTEMS FROM ELECTROMAGNETIC TRANSIENT SIMULATOR PROGRAM

DESIGN OF INTELLIGENT PID CONTROLLER BASED ON PARTICLE SWARM OPTIMIZATION IN FPGA

XC4e PWM Digital Drive

Real-time Volt/Var Optimization Scheme for Distribution Systems with PV Integration

What is New in Wireless System Design

AC Linear Motor Servo Driver

Modeling a Hybrid Electric Vehicle and Controller to Optimize System Performance

Digital Systems Design

WHAT ARE FIELD PROGRAMMABLE. Audible plays called at the line of scrimmage? Signaling for a squeeze bunt in the ninth inning?

ME375 Lab Project. Bradley Boane & Jeremy Bourque April 25, 2018

Specifications and Interfaces

PID Implementation on FPGA for Motion Control in DC Motor Using VHDL

PXI Vector Signal Transceivers

Design and Implementation of Modern Digital Controller for DC-DC Converters

Inter-Ing INTERDISCIPLINARITY IN ENGINEERING SCIENTIFIC INTERNATIONAL CONFERENCE, TG. MUREŞ ROMÂNIA, November 2007.

- Software Engineer con Laurea Magistrale in Informatica, Telecomunicazioni o Elettronica

Developing and Prototyping Next-Generation Communications Systems

Simulation and Experimental Based Four Switch Three Phase Inverter Fed Induction Motor Drive

What s Behind 5G Wireless Communications?

Rapid Design of FIR Filters in the SDR- 500 Software Defined Radio Evaluation System using the ASN Filter Designer

High-speed and High-precision Motion Controller

Simulation Performance Optimization of Virtual Prototypes Sammidi Mounika, B S Renuka

FPGA Implementation of a PID Controller with DC Motor Application

FPGA Based Implementation of Sinusoidal PWM for Induction Motor Drive Applications

AC : DEVELOPING A COURSE AND LABORATORY FOR EM- BEDDED CONTROL OF MECHATRONIC SYSTEMS

XC4e PWM Digital Drive

Digital Power: Consider The Possibilities

VLSI Implementation of Image Processing Algorithms on FPGA

Design of Multiplier Less 32 Tap FIR Filter using VHDL

Ettus Research USRP. Tom Tsou 3rd OpenAirInterface Workshop April 28, 2017

THE DESIGN OF A PLC MODEM AND ITS IMPLEMENTATION USING FPGA CIRCUITS

XC4 PWM Digital Drive

Various levels of Simulation for Slybird MAV using Model Based Design

Development of a MATLAB Data Acquisition and Control Toolbox for BASIC Stamp Microcontrollers

Low Cost Labview Based Sensor Simulation

Using a COTS SDR as a 5G Development Platform

Stephen Plumb National Instruments

DTP4700 Next Generation Software Defined Radio Platform

VT1419A Multifunctional Plus Measurement and Control Module

Virtual Testing of Autonomous Vehicles

IBM Platform Technology Symposium

Hardware-In-the-Loop simulator for turboprop and turboshaft engine control units

Classical Control Based Autopilot Design Using PC/104

Fast and Accurate RF component characterization enabled by FPGA technology

FPGA Implementation of a Digital Tachometer with Input Filtering

Dual core architecture with custom N-PLC optimized DSP and Data Link Layer / Application 32bit controller

OFDM Transceiver using Verilog Proposal

Faculty of Information Engineering & Technology. The Communications Department. Course: Advanced Communication Lab [COMM 1005] Lab 6.

A PID Controller for Real-Time DC Motor Speed Control using the C505C Microcontroller

Closed Loop Magnetic Levitation Control of a Rotary Inductrack System. Senior Project Proposal. Students: Austin Collins Corey West

DSP-2 Library for Simulink User s Manual

VT System. Product Information

VT System. Product Information

AC : TECHNOLOGIES TO INTRODUCE EMBEDDED DESIGN EARLY IN ENGINEERING. Shekhar Sharad, National Instruments

Quanser Products and solutions

Transcription:

Real-Time Testing Made Easy with Simulink Real-Time Andreas Uschold Application Engineer MathWorks Martin Rosser Technical Sales Engineer Speedgoat 2015 The MathWorks, Inc. 1

Model-Based Design Continuous Verification and Validation Requirements System-Level Specification System Design Environment Physical Components Algorithms Component Design Verification and Validation Code Verification and Validation Integration testing User Acceptance Testing System-Level Integration & Test Complete Integration & Test Subsystem Design Embedded Software Digital Electronics Subsystem Integration & Test C, C++ VHDL, Verilog MCU DSP FPGA ASIC Integration Implementation Subsystem Implementation 2

Model-Based Design Continuous Verification and Validation Requirements System-Level Specification System Design Environment Physical Components Algorithms Rapid Prototyping Verification and Validation Code Verification and Validation HiL Simulation User Acceptance Testing System-Level Integration & Test Complete Integration & Test Subsystem Design Embedded Software Digital Electronics Subsystem Integration & Test C, C++ VHDL, Verilog MCU DSP FPGA ASIC Integration Implementation Subsystem Implementation 3

Simulink Real-Time Enables Simulation and Testing Rapidly create real-time applications from Simulink models and run and test them with your hardware under test at normal operating frequencies, speeds, and timing. 4

Real-Time Simulation and Testing Tasks: Rapid Control Prototyping 0 I/O Output I/O Input 0 Wiring and Signal Conditioning Target Computer Hardware Physical Plant Hardware 5

Real-Time Simulation and Testing Tasks: Hardware-in-the-loop (HIL) Simulation Embedded Controller Hardware Wiring and Signal Conditioning Target Computer Hardware 6

Additional Real-Time Simulation and Testing Tasks: Parametric Evaluation and Performance Assessment System robustness Monte Carlo analysis Operational envelope testing Human factors Human-in-the-loop simulation Virtual reality simulators Calibration Tune algorithmic coefficients Optimize performance 7

How does Simulink Real-Time work? From desktop simulation to real time Development Computer with MATLAB and Simulink Target Computer Hardware 1 Automatic Code Generation 3 2 Compiler.dlm Ethernet link Creation of real-time applications from Simulink models and loading them onto dedicated target computer hardware in 3 automated steps: 1 Code Generation 2 Compile and Link 3 Download and Ready to Run 8

Instrument your Real-Time Applications Simulink Real-Time provides a number of UI options that enable you to communicate with and control real-time applications running on the target machine: ü Simulink Real-Time Explorer slrtexplr ü Simulink External Mode ü Simulink Real-Time APIs ü MATLAB UIs ü MATLAB command scripts Use one or more of these tools based on your workflow and interface requirements. 9

Demonstration Simulink Real-Time Explorer 10

11

Demonstration Simulink External Mode 12

13

Demonstration Batch Simulation 14

15

Control and Instrument Your Real- Time Application Built- in control and monitoring User Interface 16

Create UIs in MATLAB Graphical front end for your MATLAB scripts and apps 17

Simulink Real-Time Deployment Runs independently of Simulink One Simulink/Simulink Real-Time Target license Many target machines ü Field deployment ü Complete controller products ü Stand-alone HIL solutions ü Etc. 18

Speedgoat Real-Time Target Machines Assembled based on your technical requirements Form factors available for office, lab, field, and classroom use Optimized for highest real-time performance (Multicore CPUs and FPGAs) Fully tested and works out-of-the-box Flexible, expandable architecture supporting a wide range I/O connectivity * Custom engineering and I/O module development available 19

Demonstration Controller Algorithm with Generated Encoder and PWM Peripherals 20

Example application Rapid motor control prototyping ü ü ü ü Flexible real-time prototyping platform Use of CPU and FPGA PWM signal generation and encoder capture Synchronization of PWMs, current sensing, and model 21

Hardware solutions Leverage the FPGA without needing to know HDL coding Different use cases 1. Flexible FPGA Code Module functionality PWM generation and capture Incremental and absolute encoders SPI and I2C protocol support And much more 2. Accelerate parts of your Simulink model s realtime application using automated HDL code generation All based on the same hardware! 22

Pushing limits: More components, faster control algorithms Battery Embedded Controller Inverter 23

Example of partitioning controller for disparate rates Microprocessor FPGA 1 khz Rate 10 khz Rate 50 MHz Rate Velocity control Mode scheduler Encoder calibration Field oriented control ADC to current Encoder to position Position to velocity Voltage to PWM PWM peripheral Encoder peripheral 24

Where should a 50 khz control loop be implemented? Microprocessor??? FPGA 1 khz Rate Velocity control Mode scheduler Encoder calibration 50 khz Rate Field oriented control ADC to current Encoder to position Position to velocity Voltage to PWM 50 MHz Rate PWM peripheral Encoder peripheral 25

What else do we need to be aware of to implement the 50 khz rate on the FPGA? Microprocessor FPGA 1 khz Rate Velocity control Mode scheduler Encoder calibration 50 khz Rate Field oriented control ADC to current Encoder to position Position to velocity Voltage to PWM 50 MHz Rate PWM peripheral Encoder peripheral 26

Examples of Speedgoat FPGA-based I/O modules for use with HDL Coder Example: IO323 Spartan 6 FPGA, 100k 32 x SE/16 DF AD 08 x DA 48 x configurable TTL MGT support Latest Xilinx technologies available Artix 7 Kintex 7 Kintex Ultrascale Connect multiple FPGAs MGTs (Multi-Gigabit Transceiver) for inter-module communication Front SFP connectors for intersystem communication 27

Mobileye ADAS and autonomous driving With the Speedgoat system, changing parameters and tuning the system is very easy and straightforward. It saves us a lot of time. There is no need to re-compile and burn each new version of the control algorithm. Eyal Bagon Senior Director Autonomous Vehicle Mobileye Eyal Bagon while not driving the car 28

User Story Examples: Various disciplines Proterra, Greenville, SC, USA Zero- Emmission Battery Electric Bus Hardware- in- the- Loop simulation Levant Power, Woburn MA, USA Energy neutral active suspension system In- vehicle Rapid Controller Prototyping AGCO, France/Germany/USA Agricultural vehicles with most energy efficient gearboxes Hardware- in- the- loop simulation www.speedgoat.ch/userstories 29

Speedgoat Target Machine and I/O Offerings Performance real- time target machine Mobile real- time target machine Education real- time target machine Office and lab Field and in- vehicle use Academic use Analog and digital I/O Reconfigurable FPGA I/O Protocol interfaces 30

Typical I/O used in Automotive Industry Protocol support CAN / LIN / FlexRay Shared memory SPI / I2C Passive components High precision resistors (thermocouples / RTD) Strain gauges Encoder emulation Absolute (SSI) / Incremental EnDat, BiSS Synchro/Resolver, LVDT/RVDT Fault insertion Wide range of channel counts / fault bus configurations Designed for safety critical applications Timing applications Precision Timing Protocol (IEEE1588), GPS, IRIG 31

Speedgoat Real- Time Target Machines Solutions Designed for Simulink Real- Time, tailored to your needs Speedgoat develops and sells real- time target machine solutions consisting of Real- time target machine I/O modules Software drivers, cables and tools to connect with a prototype I/O modules installed in t arget machine Real- time t arget machine I/O cables Terminal boards Driver blocks Simulink t est models Documentation HIL rack example 32

Simulink Real-Time Summary Seamless integration into MATLAB/Simulink An easy way to test your application in a real-time environment Runs on Speedgoat target hardware 33