model-based design of embedded control systems, rp · pdf filemodel-based design of embedded...
TRANSCRIPT
1© 2011 The MathWorks, Inc.
Model-Based Design of Embedded Control Systems, Rapid Prototyping
and Hardware-in-the-loop
2
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 trainingand consulting
Distributors in 25 countries
Earth’s topography on an equidistant cylindrical projection, created with MATLAB and Mapping Toolbox.
3
Key Capabilities Drive MathWorks Business
Founded in 1984
1985 1990 1995 2000 2005
• Rapid prototyping and HIL
• DSP designs • State charts • Physical modeling
• Discrete-event modeling
• Model checking
• Test and measurement
• Code verification
• Embedded software
• VHDL/Verilog
MATLAB
Simulink
• Control design• Signal processing
• Image processing
• Computational finance
• Computational biology
• Application deployment
• Distributed and parallel computing
• Student version
• Optimization• Statistics
Technical Computing
Data Analysis and Algorithm Development
System Modeling and
Simulation
Automatic Code
Generation
Verification, Validation,
and Test
• Instrument and database connectivity
• DSP software
• Communication systems
• Video processing
2010
• Qualification kits
• PLC code
• MATLAB Mobile for iPhone
4
1984 1989 1994 1999 2004 2009
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
5
Key Industries
Aerospace and defense Automotive Biotech and pharmaceutical Communications Education Electronics and semiconductors Energy production Financial services Industrial automation and
machinery
6
Deeply Rooted in Education
Benefits for Industry: 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.
3500+ universities around the world 1200+ MATLAB and Simulink based books Academic support for research, fellowships,
student competitions, and curriculum development
“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
7
Core MathWorks Products
The leading environment fortechnical 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
8
Core MathWorks Products
The leading environment for system-levelmodeling, simulation, and verification ofcommunications and electronic systems
Multidomain system-level design and verification Digital, analog, and mixed-signal simulation
using discrete-time, continuous-time, statemachine, and discrete-event modeling
Floating- and fixed-point algorithm developmentusing MATLAB, Simulink blocks,or existing C code
Blocksets for signal processing, videoprocessing, communications, and RF
Open architecture with links to third-party toolsand development boards, and instrumentation
C and HDL code generation for DSPs,embedded processors, and FPGAs
Object Detection
10
Migration Planning
Component Deployment
Full Application Deployment
Con
tinuo
us Im
prov
emen
t
Consulting ServicesAccelerating return on investment
A global team of experts supporting every stage of tool and process integration
Supplier InvolvementProduct Engineering TeamsAdvanced EngineeringResearch
Advisory Services
Process Assessment
Jumpstart
Process and Technology Standardization
Process and Technology Automation
11
Training ServicesExploit 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
12
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– Web forum for technical discussions about
MathWorks products– More than 300 posts per day
Blogs– Commentary from engineers who design, build,
and support MathWorks products– Open conversation at blogs.mathworks.com
Based on February 2011 data
13
Connections Program
More than 400 add-on products and services thatcomplement 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
14
Book Program
More than 1200 books for educational and professional use, in 26 languages
Mathematics Aerospace engineering Environmental sciences Chemistry Finance Electronics
Controls Signal processing Image processing Biosciences Communications Mechanical engineering
15
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%
17
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?
GAP
From Simulation to Real-Time Testing
18
Real-Time Testing Scenarios: Functional Rapid Prototyping
Wiring and Signal Conditioning
Real-Time Target Computer Production Plant Hardware
CodeGeneration
Execution• Host/Target• Real-time
19
Real-Time Testing Scenarios: Hardware-in-the-Loop (HIL) Simulation
Wiring andSignal Conditioning
ECU or MicroController
CodeGeneration
CodeGenerationExecution
• Host/Target/Target• Real-time
Real-Time Target Computer
20
Real-time testing using xPC Target
xPC Target and xPC Target Turnkey systems create a hard real time environment for testing your Simulink models.
21
Host PC with
MATLAB
xPC TargetPC
What is xPC Target?
Ethernet or RS 232
1
2
3
An environment that allows the real-time execution of Simulink models on a separate xPC Target Kernel compatible PC.
Simulink Coder
22
Host PC with
MATLAB
xPC TargetPC
What is xPC Target?
Ethernet or RS 232
An environment that provides interactive access between the real-time application and the host PC.
Host PC with
MATLAB
xPC TargetPC
Ethernet or RS 232
23
Host PC with
MATLAB
xPC TargetPC
Ethernet or RS 232
What is xPC Target?
3
An environment that provides interactive access between the real-time application and the host PC.
1
2
4
2
24
xPC TargetPC
What is xPC Target?
An environment that provides numerous I/O device driver blocks that are easily configurable within the Simulink model to communicate with actual hardware in real-time.
Host PC with
MATLAB
xPC TargetPC
Ethernet or RS 232
25
What is xPC Target?
xPC TargetPC
An environment that provides numerous I/O device driver blocks that are easily configurable within the Simulink model to communicate with actual hardware in real-time.
EW1
26
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
What is xPC Target Turnkey
27
xPC Target Software for real-time testing using Simulink models For parameter tuning, real-time monitoring, and data logging Multi-core/Multi-tasking real-time kernel optimized for Simulink
Real-time target computer Hardware for real-time testing using Simulink models Real-time target machines assembled based on your
performance, I/O connectivity, and environmental requirements, Fully integrated with Simulink and xPC Target Additional support to build and integrate your own target hardware
Services Training Onsite support Customization of software to work with your environment and
other software Automation
xPC Target Turnkey Key Components
28
Wide range of I/O modules installed in your target machine and fully tested
What is xPC Target Turnkey
IO Type FunctionalityAnalog High-resolution, high-speed, simultaneous sampling
Digital TTL, 12V, 24V, high-drive, opto-coupled
Serial RS232, RS422, RS485, SDLC, HDLC
Protocols SPI, I2C, SSI, CAN, Ethernet, UDP, J1939, ARINC 429, MIL-STD-1553
Audio/Speech Audio/Speech optimized analog IO modules, XLR panels
Shared Memory Reflective Memory for high speed data transfer in multi-processor systems
Various LVDT/RVDT, Synchro/Resolver,
Configurable FPGA • 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