Dr Ben Black Systems Engineer National Instruments - - PowerPoint PPT Presentation

dr ben black systems engineer
SMART_READER_LITE
LIVE PREVIEW

Dr Ben Black Systems Engineer National Instruments - - PowerPoint PPT Presentation

Dr Ben Black Systems Engineer National Instruments ben.black@ni.com Agenda Trends in Automotive Electronics Flexible HIL Solutions High Speed Deterministic Data Transfer Distributed HIL Discontinuous Simulation Solvers


slide-1
SLIDE 1

Dr Ben Black – Systems Engineer National Instruments ben.black@ni.com

slide-2
SLIDE 2

Agenda

  • Trends in Automotive Electronics
  • Flexible HIL Solutions
  • High Speed Deterministic Data Transfer
  • Distributed HIL
  • Discontinuous Simulation Solvers
slide-3
SLIDE 3

The “Good” The “Bad” The “Ugly”

slide-4
SLIDE 4

Global Automotive Industry Trends

  • Consumer electronics technologies in vehicles
  • Alternative Energy
  • Cost Reduction
  • Reduced Emissions
  • Increased Safety
  • Differentiation through Features
  • Global Design and Manufacturing

The “Ugly”

slide-5
SLIDE 5

Automobiles Then and Now…

Mechanics and hydraulics 3 ECUs AM/FM radio Relay-control units CAN Electromechanics 15 to 80 ECUs Telematics (Infotainment) Power-control units CAN, LIN, FlexRay, ...

slide-6
SLIDE 6

…and Software defines the Functionality

Engine control unit

slide-7
SLIDE 7

Software-Based Hardware Designs

  • Benefits
  • Rapid Advancements
  • New and Improved

Functionality

  • Lower Cost
  • Challenges
  • More functions to test
  • More measurements to

make

  • Unique functions to test

“For the next 10 years an increase of 10%-15% of software in the share of costs of a vehicle is forecasted every year”

  • McKinsey&Company Study
slide-8
SLIDE 8

Control Design Process

System Testing Modeling and Design Targeting Rapid Prototyping Hardware-in- the-Loop Testing

slide-9
SLIDE 9

Modeling and Design

Modeling and Design Produce Controller and Plant Models

Kc Controller Kp Plant

Error Control Output Feedback Setpoint

slide-10
SLIDE 10

Rapid Control Prototyping

Creating a Functional Prototype of the Controller

Kc Controller Kp Plant

Error Control Output Feedback Setpoint

slide-11
SLIDE 11

Rapid Control Prototyping Example

NI CompactRIO Drivven: “We prototyped a full-authority engine control system … in just 3 man-months. In past projects, it took us at least 2 man-years and over $500,000 to develop similar ECU systems.”

slide-12
SLIDE 12

Hardware-in-the-Loop Simulation

Testing Production Controller with Simulated Plant

Kc Controller Kp Plant

Error Control Output Feedback Setpoint

slide-13
SLIDE 13

What is HIL?

  • The use of real-time I/O hardware to simulate the dynamic

behavior of a device that interfaces to the unit under test.

  • Dynamic – stimulus reacts to the response of the UUT (closed-

loop)

  • Static – stimulus ignores the response of the UUT (open-loop)
  • The simulator may use programming languages, state charts,

modeling languages or other methods to describe the input/output behavior (dynamics) of the device

slide-14
SLIDE 14

What is HIL?

  • Types of test
  • Functional
  • Parametric
  • Validation (V&V)
  • Durability (HALT/HAST)
  • End-of-line
  • Methods in test
  • Temperature/power variation
  • Salt/sand spray
  • EM radiation
  • Loading/resistance
  • HIL Simulation
slide-15
SLIDE 15

The “Good” The “Bad” The “Ugly”

slide-16
SLIDE 16

Example…the automobile

3 ECUs  15 to 70 ECUs in 10 years

slide-17
SLIDE 17

Automotive Electronics vs. CO2 Consumption

The effect...

Electronic causes 5% of a cars CO2 Emissions State of the art Infotainment System: 4-6 Ampere ≈ 0,1 Liter gasoline ≈ 2 Gramms CO2 Innovation vs. CO2 Reduction

slide-18
SLIDE 18

The “Good” The “Bad” The “Ugly”

slide-19
SLIDE 19

HIL for ECU Test

Challenges –

  • Modularity: No method of drag-and-drop ECU

hardware architecture

  • Flexibility: Difficult to add or swap ECUs in a current

test configuration

  • Wiring/Cabling: Direct I/O wiring makes re-wiring

tedious and time-consuming

  • Cost: Significant loss of “up-time”
slide-20
SLIDE 20

Flexible HIL Solutions

  • I/O with Deterministic Data Transfer
  • Integrated Signal Conditioning
  • High Resolution Measurements (up to 24 bits)
  • Flexible and Modular ECU/HIL Testing Environment
  • Distributed Simulation
slide-21
SLIDE 21

FPGA and Reconfigurable IO

8-Slot cRIO ADC and Integrated Signal Conditioning FPGA on cRIO Backplane C-Series Modules

slide-22
SLIDE 22

FPGA and Reconfigurable IO

Knock Signal Generation Sensor Simulation (LVDT) Custom Serial Protocols Crankshaft Simulation

slide-23
SLIDE 23

Engine Control Unit

HIL for ECU Test

Up to 100 ECUs for a single solution Real-Time Processors AI, AO, DI, DO, CAN I/O Points

slide-24
SLIDE 24

FPGA in HIL ECU Test

Bring the I/O Nodes to the ECUs

NI FPGA Backplane with I/O Modules ECU

slide-25
SLIDE 25

FPGA in HIL ECU Test

ECU with I/O Module Real-Time Processor

LabVIEW Real- Time Desktop or Industrial PC PXI Rack-Mount Controller

slide-26
SLIDE 26

High Speed Deterministic Data Transfer

  • Master/Slave Architecture
  • Expandable I/O
  • Optimized for Single-Point Industrial Data Transfer
  • Predictable Timing and Precise Synchronization
  • Masters Use Off-the-Shelf Ethernet Interface
  • Continuous Data Flow Through Multiple Slaves
  • High Bandwidth Efficiency
slide-27
SLIDE 27

High Speed Deterministic Data Transfer

PXI Smart Camera 8-Slot cRIO

NI Masters NI Slaves

NI 8353 Rack-Mount RT

Future

slide-28
SLIDE 28

Flexible HIL Solutions

Need to add another ECU?

Real-Time Processor (Master)

slide-29
SLIDE 29

Flexible HIL Solutions

Add another Slave to the chain

Real-Time Processor (Master)

Ethernet cables make re-wiring simple

slide-30
SLIDE 30

Change out ECUs as needed with pre- assembled ECUs and I/O modules

Real-Time Processor (Master)

Flexible HIL Solutions

Need to test a different car?

slide-31
SLIDE 31

Use same RT Processor, just switch ECU software models

Real-Time Processor (Master)

Flexible HIL Solutions

Need to test a different car?

slide-32
SLIDE 32

Distributed Simulation

slide-33
SLIDE 33

Discontinuous Simulation Solvers

slide-34
SLIDE 34

Summary of Computer Simulation

What Why How

Off-line

Plant (dynamic system) Controller Design prototype controller Investigate behavior Variable step : for precision Fixed-step : for speed

Real-Time

Plant (dynamic system) Validate prototype controller Field diagnostic tool

Fixed step - HIL

Electrical Systems Mechanical Systems Physical Systems Chemical Systems

Dynamic Systems Discontinuous Systems

slide-35
SLIDE 35

∫ u y y(t) = u(t)

Simulation of Dynamic System

Dynamic system Differential equations Variable step approximation

ta t u y(a) tb ta t u y(a) tb t1 y(1) ta t u y(a) tb t1 y(1) t2 y(2)

Solved through error control In the presence of a discontinuity : t ta tb t1 t2 tk-1 tk … … Tθ

Iteratively locate the discontinuity until

(tk – tk-1) = very very small k = non-deterministic

slide-36
SLIDE 36

Fixed-step approximation 1 step methods

t(n-1) t(n) t u y(n)

Backward Euler

t(n-1) t(n) t y y(n)

y(n) = y(n-1)+Ty(n)

t(n-1) t(n) t u y(n-1) y(n)

Trapezoidal

t(n-1) t(n) t y

y(n) = y(n-1)+½T(y(n)+y(n-1))

t(n-1) t(n) t u y(n-1) t(n-1) t(n) t y y(n-1)

Forward Euler y(n) = y(n-1)+Ty(n-1)

Simulation of Dynamic System

slide-37
SLIDE 37

Backward Euler

t(n-1) t(n) t u y(n) Tθ t(n-1) t(n) t y Tθ

In the presence of a discontinuity :

t(n-1) t(n) t y Tθ

Forward Euler

t(n-1) t(n) t u Tθ

Trapezoidal

t(n-1) t(n) t u Tθ t(n-1) t(n) t y Tθ

Simulation of Dynamic System

slide-38
SLIDE 38

Impact of discontinuity errors : Electrical system example

0.1 0.2 0.3 0.4 0.5 1 2 3

  • 1
  • 2
  • 3

Current error (in A) Time (in s) Ideal variable step h

+ 360 Vdc 3 HP + +

  • Iref

Iabc

0.1 0.2 0.3 0.4 0.5 1 2 3

  • 1
  • 2
  • 3

Current error (in A) Time (in s) Standard fixed step (Ts = 20 μs) h Standard fixed step (Ts = 2 μs)

0.1 0.2 0.3 0.4 0.5 1 2 3

  • 1
  • 2
  • 3

Current error (in A) Time (in s) h

Simulation of Dynamic System with Discontinuities

slide-39
SLIDE 39

Problems :

  • Where is the boundary ?
  • What happens at the

boundary ? Discontinuous system Piecewise continuous system Boundary : special calculation

t(n) u y(n) t(n-1) y(n-1) Tθ y(θ )

  • y(θ )

+ continuous continuous

Tθ = ?

Fixed step simulation of discontinuous systems

y(θ ) + t(n) u y(n) t(n-1) y(n-1) Tθ y(θ )

  • y(n)

1 2 3 4

1 – Calculate y(n) (discontinuity undetected). 3 – Process the boundary : special calculation. 2 – Detect the discontinuity and determine Tθ. 4 – Recalculate y(n).

In fixed step :

slide-40
SLIDE 40

Current error (in A)

0.1 0.2 0.3 0.4 0.5 1 2 3

  • 1
  • 2
  • 3

Time (in s) Ideal variable step h

Iabc +

360 Vdc 3 HP

+ +

  • Iref

Real-Time (Ts = 55 μs) Current error (in A)

0.1 0.2 0.3 0.4 0.5 1 2 3

  • 1
  • 2
  • 3

Time (in s) h Real-Time (Ts = 75 μs) Current error (in A)

0.1 0.2 0.3 0.4 0.5 1 2 3

  • 1
  • 2
  • 3

Time (in s) h

Real-Time Simulation of Power Electronics Circuits

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0

  • 10

10 20 30 40 50 60 Time (in s) Angular velocity (in rpm) Ideal New (55 μs) New (75 μs) Motor Angular Velocity

Electric Drive Test Bench

slide-41
SLIDE 41

The “Good” Approach

 Flexible solutions

  • Customize software with LabVIEW
  • Customize hardware with FPGA
  • Integrate I/O nodes quickly and easily
  • Distribute the simulation

Improved Solver