CMC Brazil Paper - National Instruments

Page 1

Simulation Hardware-In-the-Loop: New approach for test automation in real and simulated environments Marcos Cardoso Lima Costa Business Development Manager at National Instruments

ABSTRACT The role of the test engineer is to find all possible failures in a device before it releases. In the domain of electronic control module testing, this role has been diluted into a combination of test scenario creation, evaluation and test scenario implementation. Using traditional tools, the test engineer had to be competent in both test case creation, evaluation as well as the engineering of the test scripts necessary to implement those scenarios. In this presentation we’ll look at new technologies that are enabling the test engineer to spend more time thinking of and evaluating test scenarios without the added burden of engineering and debugging complex test scripts. We’ll also examine the impact of these technologies in recent projects.

INTRODUCTION Every year consumers demand more from the products they use and the services provided to them. For the auto industry this means smarter, more fuel efficient cars to compensate for rising fuel costs. Pushed by these challenges, cars have evolved into intelligent platforms that include complex electronics and software algorithms implemented on embedded control devices called electronic control units (ECUs).

BODY The techniques and tools that engineers use to develop automobiles have evolved as well. A result of this evolution, Hardware-in-the-Loop (HIL) simulation is a test technique that helps reduce development cost, reduce time to market, and increase the quality of automobiles. This article describes HIL simulation and explains how it is being used to build better cars, and it provides guidance on considerations that should be made when selecting a HIL system.

Figure 1: An automobile can have hundreds of ECUs, and HIL simulation can be used to test the proper operation of all of them. What is HIL Simulation? HIL simulation is a real-time testing technique used to test embedded control devices more efficiently. When testing embedded control devices, safety, availability, or cost considerations can make it impractical to perform all of the necessary testing using the complete system. During HIL testing, the physical system that interfaces to an embedded control device is simulated on real-time hardware, and the outputs of the simulator mimic the actual output of the physical system. The embedded controller “thinks” it is in a real system. HIL simulation allows for thorough testing of the embedded control device in a virtual environment before proceeding to real-world tests of the complete system. How Does HIL Simulation Work? In a closed-loop control system, the current state of the system being controlled is fed back to the controller through sensor measurements. In the case of an automobile, an ECU uses these measurements to determine the appropriate actuator values to attain a desired operating condition. For example,


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.