Sei sulla pagina 1di 19

Automotive Symposium 2010

From Modeling to System Testing with g Single Software-Hardware Platform

Agenda
Model and Design System Testing

Graphical System Design V-Diagram with V Diagram Unified Tool Chain


Modeling System Identification Control Design Simulation

Rapid Prototyping

Hardware in the Loop

Targeting

FPGA As a Prototyping Technology System Testing


Data Management Challenges

Origins of Virtual Instrumentation


Traditional Vendor-Defined Instruments Customer-Defined PC-Based Measurement and Automation Solutions

Processor RAM ROM

Display Power Supply Hard Disk

Virtual Instrumentation Architecture

Software Defined Measurement Hardware Rapid Development Software PC-based Platform With Timing and Synchronization
4

LabVIEW Graphical Programming

Compiled Graphical Development Environment Development Time Reduction of Four to Ten Times Tools to Acquire, Analyze, and Present Your Data BuiltinEngineeringLibraries EasilyConnects toHardwareI/O
5

Speed Development with Graphical Programming


LabVIEW LabVIEW
* CC*

* does not include code to generate UI

Automotive Design Closed Loop Control

Design

System Test

Kc

Kp

Kc

Kp

Rapid Prototyping

Hardware-in-theLoop Validation

Kc

Kp

Targeting

What Is a Software Model?


Software model is a dynamic representation of system dynamics

Model and Design

Demonstration: Mathematical Modeling


Modeling in LabVIEW
Transfer Function (State Space, Zero-Pole-Gain) Time Domain Differential Equation

Root Locus Poles MIMO/SISO

System Identification and Control Design in LabVIEW


System Identification Stimulus
System

Response

y g p MIMO system identification w/ control design in LabVIEW allowed me to skip first principles modeling. The approach saved so much time that I completed the entire project in 1/3 the time. Dr. George Anwar, Integrated Motions, Inc., NI Alliance Member

10

Simulation Model Conversion


Convert your plant and controller models developed in The MathWorks, Inc. Simulink environment into LabVIEW Simulation Module code

Simulink is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners.

11

Little or No Learning Curve for The MathWorks, Inc. Simulink Software Users
LabVIEW Simulation Module The Simulink Software Environment

Simulink is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners.

12

Plant Analysis Requirements


Model construction, conversion, and reduction Time and frequency response Dynamic characteristics Continuous, discrete, stochastic

13

LabVIEW MathScript
Powerful textual programming for signal p processing, analysis, and math g y
More than 650 built-in functions Reuse many of your m-file scripts created with The MathWorks, Inc. MATLAB software and others Partially based on original math from NI MATRIXx

A native LabVIEW solution


Interactive and programmatic interfaces Does not require third-party software

MATLAB is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners.
14

Little or No Learning Curve for Customers Familiar with The MathWorks Inc. MATLAB Language Syntax
LabVIEW MathScript Syntax MATLAB syntax

MATLAB is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners.
15

Control Design Requirements


Classical control design - root locus, PID, lead/lag ... State space control and estimation State-space - LQR, LQG, pole placement, Kalman filter ... PID Synthesis Model Predictive Control (MPC), Adaptive Controlers, non-linear control

16

Demo: DC Motor Control


Ethernet Crossover

NI 9472 DO Module

9472 Digital Output Module Quadrature Encoder

Brushed DC Motor

17

Simulation Requirements
Linear systems continuous and discrete time Nonlinear system blocks and lookup tables Fixed-step, variable step, and stiff solvers Trimming and linearization Model hierarchy 3D picture control for system visualization Graphical and Textual Math

18

Demonstration: LabVIEW Simulation Module Demo


LabVIEW Dev Sys LabVIEW System ID Toolkit Controller Model DC Motor Model LabVIEW Simulation Module

Actual Speed

LabVIEW CD&Sim

Speed Setpoint

19

Case Study - Visteon


TICTV Engine Control
Reference tracking of g engine Torque (Tq) Minimization of Brake Specific Fuel Consumption (BSFC) Minimization of Combustion Instability ( ) y (CI)

NI Software Benefits
Front panel UI Libraries
20

10

Algorithm Deployment

Rapid Prototyping

Demontration: Real-Time Prototyping


Simulation Module and LabVIEW Real-Time
Implement controller on real-time h d I l t t ll l ti hardware
LabVIEW Simulation Module LabVIEW Dev Sys LabVIEW CD&Sim LabVIEW RT
Speed Setpoint

Controller Model

DC Motor Model

Actual Speed

22

11

Demontration: Real-Time Prototyping


Simulation Module and LabVIEW Real-Time
Implement controller on real-time h d I l t t ll l ti hardware
LabVIEW Simulation Module LabVIEW Dev Sys LabVIEW CD&Sim LabVIEW RT
Speed Setpoint

Controller Model

Actual Speed
AO Update AI Scan

23

Standard Embedded Architecture, Standard Design Tool


COTS I/O COTS I/O COTS I/O
PXI RIO Custom I/O

LabVIEW Real-Time target LabVIEW FPGA target LabVIEW uP SDK target

CompactRIO

Targeting

ThirdParty SBC

Single-Board CompactRIO

Custom Design

24

12

FPGA Technology and Logic Implementation


Implementing Logic on FPGA: F = {(A+B)CD} E LabVIEW FPGA Code

A B C D

25

FPGA Technology and Logic Implementation


Implementing Logic on FPGA: F = {(A+B)CD} E LabVIEW FPGA Code E F

A B C D

26

13

True Parallelism
E F

A B C D

27

True Parallelism
E F

A B C D Z

W X

28

14

Analog Control Over 40 kHz


Control in Software Single PID ~40 kHz Control in FPGA Single PID ~200 kHz

29

Analog Control Over 40 kHz


Control in Software Four PID Loops ~25 kHz Control in FPGA Four PID Loops ~200 kHz

30

15

Importance of FPGA in Automotive Systems

31

Importance of FPGA in Automotive Systems


High Reliability Designs become a custom circuit High Determinism Runs algorithms at deterministic rates down to 25 ns (faster in many cases) True Parallelism Enables parallel tasks Reconfigurable Create new and alter existing task-specific personalities
32

16

System Testing

Designed Component Needs to be Tested in Real World: In-vehicle Datalogging Noise, Harshness, Vibration Analysis , , y Compliance with Safety Requirements Crash Tests
33

System Testing

System Testing - Data Acquisition (DAQ)


Plug-in DAQ
PCI/e PXI/e SCXI SC Express (New!)

Intelligent DAQ
Standalone cRIO

External DAQ
Ethernet/USB Compact DAQ Multifunction USB X Series (New!) Wi-fi
34

System Testing

17

The Data Problem

Keep graphics belowthe text and to the right.

System Testing

35

NI DIAdem

Revolutionary software for organizing, finding and reporting technical data

36

18

Summary
Graphical System Design From Modeling to System Testing V-Diagram Covered with Unified Toolset:
LabVIEW with Control Design Toolkits cRIO with FPGA and Real-Time Control Real Time PXI with 1300+ Modules DIAdem to Keep Track of Data

37

Importance of FPGA in Automotive Systems


High Reliability Designs become a custom circuit High Determinism Runs algorithms at deterministic rates down to 25 ns (faster in many cases) True Parallelism Enables parallel tasks Reconfigurable Create new and alter existing task-specific personalities
44

19

Potrebbero piacerti anche