13.07.2015 Views

2004-01-1240 An Overview of Hardware-In-the-Loop ... - dSPACE

2004-01-1240 An Overview of Hardware-In-the-Loop ... - dSPACE

2004-01-1240 An Overview of Hardware-In-the-Loop ... - dSPACE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

emote control power supply. The power supply can becontrolled in real time during simulation, which provides<strong>the</strong> capability <strong>of</strong> vehicle battery simulation The PCM isphysically connected to <strong>the</strong> HIL simulator by customizedharnesses for I/O routing ei<strong>the</strong>r directly or throughswitchable breakout boxes. Fur<strong>the</strong>r, it is possible toattach actual physical component assemblies to <strong>the</strong> HILsystem using an external interface. The system alsoaccommodates integration <strong>of</strong> <strong>of</strong>f-<strong>the</strong>-shelf calibrationand diagnostic tools. The integration <strong>of</strong> calibration anddiagnostic tools with <strong>the</strong> HIL system provides <strong>the</strong>capability <strong>of</strong> automated testing <strong>of</strong> very complexPowertrain control system s<strong>of</strong>tware. [3]One <strong>of</strong> <strong>the</strong> critical parts <strong>of</strong> this HIL system is <strong>the</strong> loadsubsystem. It is very critical to have an appropriate loadfor <strong>the</strong> actuator signals in order for <strong>the</strong> PCM s<strong>of</strong>tware towork properly. <strong>In</strong> order to accommodate <strong>the</strong> specialcharacteristics <strong>of</strong> certain actuators <strong>the</strong> system connectsto a specially designed company proprietary loadsubsystem. The closed loop simulation <strong>of</strong> <strong>the</strong> systemrequires appropriate feedback response from <strong>the</strong>actuator load to satisfy <strong>the</strong> smart device driver integratedcircuits (IC) and advanced On Board Diagnostics (OBD)system s<strong>of</strong>tware. Without <strong>the</strong> appropriate closed loopsystem and actuator load feedback, <strong>the</strong> PCM controllerwill enter a fault mode and will defeat <strong>the</strong> purpose <strong>of</strong>validation <strong>of</strong> <strong>the</strong> system s<strong>of</strong>tware. For <strong>the</strong> completeclosed loop system simulation ano<strong>the</strong>r significationrequirement is <strong>the</strong> representative plant model. The plantmodel should represent <strong>the</strong> physical behavior <strong>of</strong> <strong>the</strong>plant; in our implementation <strong>the</strong> plant consists <strong>of</strong> <strong>the</strong>engine, <strong>the</strong> transmission and o<strong>the</strong>r ancillarycomponents.interfaces. Refer to Figure 3 to see a depiction <strong>of</strong> some<strong>of</strong> <strong>the</strong>se interfaces. Below is a list <strong>of</strong> just some <strong>of</strong> <strong>the</strong>phases required to perform HIL testing:• Control <strong>of</strong> <strong>the</strong> test sequence to run and ability toregressively test• <strong>In</strong>jection <strong>of</strong> test stimulus in real-time• Access to <strong>the</strong> model parameters and data andcontrol <strong>of</strong> <strong>the</strong> simulation state• Access to external devices (Testers, Voltmeters,etc.)• Access to and control <strong>of</strong> PCM interfaces (diagnostictools)• Ability to generate test documentation and save testdata• Test data analysis during <strong>the</strong> testThe system chosen to perform <strong>the</strong> testing must provide<strong>the</strong> power to perform <strong>the</strong> above tasks, yet needs to berelatively easy to use in order to minimize testdevelopment costs and allow for changes in <strong>the</strong> testingprocess. The system chosen by Visteon is <strong>the</strong> s<strong>of</strong>twaretool ControlDesk ®2 , by <strong>dSPACE</strong>. ControlDesk providesall <strong>of</strong> <strong>the</strong> capabilities needed for a HIL test system,including hardware/model management, data acquisitionand graphical user-interface capabilities. The TestAutomation extension <strong>of</strong> ControlDesk is based on <strong>the</strong>python language, and it provides <strong>the</strong> interface librariesneeded to automate <strong>the</strong> tools and programs needed toperform <strong>the</strong> above listed tasks.A set <strong>of</strong> plant models suitable for real-time simulationhas been developed and validated in-house, torepresent various automotive subsystems for differentpowertrain applications. The real time executable plantmodels are developed in MATLAB ® , Simulink ®andStateflow ®1 , and are composed <strong>of</strong> flexible andconfigurable component and sub component models.Physical component and systems are represented inma<strong>the</strong>matical models. These representative plantmodels are developed with significant and adequatedetail to perform <strong>the</strong> controller s<strong>of</strong>tware algorithmverification and validation.TEST AUTOMATION SEQUENCE CONTROL ANDDESIGNPhases <strong>of</strong> testing and automationThe task <strong>of</strong> powertrain hardware and s<strong>of</strong>tware testingusing HIL simulation requires many phases andFigure 3 <strong>In</strong>terfaces in HIL SystemTest sequences and scripting with pythonPython is an open source language, available on <strong>the</strong>www.python.org website. It is an extremely powerful,1MATLAB, Simulink and Stateflow are trademarks <strong>of</strong> The MathWorks,<strong>In</strong>c.2ControlDesk is trademark <strong>of</strong> <strong>dSPACE</strong> GmbH.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!