What is HIL Testing?

Hardware-in-the-loop (HIL) testing means the tests of real ECUs (electronic control units) in a realistic simulated environment. These hardware-in-the-loop simulation tests are reproducible and can be automated which leads to 24/7 comprehensive testing in the laboratory, shortens validation times, and increases the range of HIL test scenarios. Additionally testing critical corner cases on a HIL test bench can be done without creating safety problems for the device-under-test or the environment.

Advantages of HIL Testing
  • HIL test systems scalable from small to large
  • Hardware-in-the-loop simulation of the complete vehicle or integration of real components
  • Communication testing
  • Bus and restbus simulation

What our customers say

Test levels covered by dSPACE HIL systems

Typical HIL Test System

A HIL test system comprises of the simulation hardware and the accompanying software. Connected to the HIL test system is the unit under test, which usually is one or more electronic control units (ECUs) containing new functions or ECU software to be tested. Depending on the use case, further real hardware components can be added to the test system, e.g., steering or the brake system.

 

Schematic overview of a typical HIL test system with its components.

Test Management

  • SYNECT
    SYNECT

    Data management and collaboration software with a focus on model-based development and ECU

Platform and I/O Configuration

  • ConfigurationDesk
    ConfigurationDesk

    Configuration and implementation software for dSPACE real-time hardware

  • Bus Manager
    Bus Manager

    Configuration tool for LIN, CAN, and CAN FD bus simulation

  • dSPACE Ethernet Configuration Package
    dSPACE Ethernet Configuration Package

    With the dSPACE Ethernet Configuration Package, you can configure a dSPACE system as a simulation node in a service-oriented Ethernet network.

  • dSPACE FlexRay Configuration Package
    dSPACE FlexRay Configuration Package

    The dSPACE FlexRay Configuration Package is used to integrate dSPACE hardware as simulation or monitoring nodes in a FlexRay network.

Experimentation and Visualization

  • ControlDesk
    ControlDesk

    Universal modular experiment and instrumentation software for electronic control unit (ECU) development

  • ModelDesk
    ModelDesk

    Graphical user interface for parameterization, management, and simulation

Test Automation

  • AutomationDesk
    AutomationDesk

    Powerful test authoring and automation tool for HIL testing of ECUs

HIL Real-Time and I/O Hardware

  • MicroLabBox II
    MicroLabBox II

    MicroLabBox II is a compact laboratory system for rapid control prototyping and controller hardware-in-the-loop applications that combines compact size and cost-effectiveness with high performance and versatility.

  • SCALEXIO Essential
    SCALEXIO Essential

    Flexible rack-mounted system for developing and validating ECUs in automotive, agricultural, and construction machinery mechatronics.

  • SCALEXIO LabBox
    SCALEXIO LabBox

    The SCALEXIO LabBox is a compact, modular real-time system for desktop or rack-mount use.

  • SCALEXIO Rack System
    SCALEXIO Rack System

    The SCALEXIO rack system is very flexible due to extensive I/O features. All hardware is software-configurable, making it easy to adapt the system to changing project requirements.

  • 
SCALEXIO Customized System
    SCALEXIO Customized System

    The dSPACE SCALEXIO customized system is a highly versatile hardware-in-the-loop simulator that offers a comprehensive range of adaption and configuration options to meet customer-specific requirements.

  • Power HIL Systems
    Power HIL Systems

    Testing electric motor controllers, including power electronics with emulated motors and real currents.

  • Mechatronic Test Benches
    Mechatronic Test Benches

    dSPACE provides highly dynamic turn-key test benches for mechatronic components and systems.

Simulation Model

  • Automotive Simulation Models (ASM)
    Automotive Simulation Models (ASM)

    Tool suite for simulating the engine, vehicle dynamics, electrical system, and traffic environment

  • AURELION
    AURELION

    The dSPACE solution for sensor-realistic simulation offers powerful visualization and physical computation functions for generating synthetic sensor data in virtual test drives.

Deep Dive – Test Phases and Test Systems in HIL Simulations

Function Testing

Function testing focuses on testing single or a few functions, including their interaction with ECU basic software. Since this kind of testing is typically an integral part of function development rather than final release testing, its focus lies on experimental usage, without systematic test automation. Hardware-in-the-loop (HIL) test systems for function testing therefore require versatile bus and network interfaces, restbus simulation on the behavior and protocol levels, or design-for-test interfaces (e.g., XCP). These types of tests are often performed by the function developers themselves and must fit on a developer’s desk.

ECU Component Testing

Typical applications for ECU tests range from software integration testing through fail-safe and fail-operational testing, to ECU release testing. Testing is therefore highly automated and based on ECU requirements to cover the high number of variants.

Test systems for ECU testing require scalable I/O and bus/network interfaces including electrical failure simulation. Furthermore, testing of buses and networks requires restbus simulation on the behavior and protocol level as well as extensive manipulation.

Testing of real components requires comprehensive plant models and simulation performance that can be increased accordingly. Ideally, the test system functions can be adapted to changing project requirements.

ECU Domain and Network Testing

ECU domain and network testing is characterized by end-to-end testing of distributed functions. This includes sleep or wake-up tests as well as fail-safe and fail-operational tests of the vehicle’s ECU network. The need for an extensive range of I/O channels as well as bus and network interfaces is characteristic for these kinds of test systems.

A multitude of plant models must be processed time-synchronously on several clustered real-time systems. To handle complex models and scenarios, strong simulation performance and multiprocessor capabilities are required. 

ECU network testing systems often run highly automated test programs around the clock, made possible by comprehensive test management systems.

Specialized Topics

Validation of Safe and Secure Bus and Network Communication 

Validating in-vehicle communication networks is crucial for the HIL testing of distributed automotive systems. dSPACE provides comprehensive solutions for simulating and analyzing bus systems like CAN FD, LIN, FlexRay, and Automotive Ethernet, along with higher-level protocols. These solutions support complete restbus simulation, gateway functionalities, and fault injection, enabling verification of ECU communication behavior under real-time conditions. Integrated tools offer precise timing analysis, signal manipulation, and simulation of safety and security mechanisms, as well as ensuring functional correctness and compliance with OEM specifications and industry standards. 

Automotive cybersecurity regulations and standards require the protection of the vehicle’s components against external threats by securing  the communication between them. This is realized by using security protocols on bus and network level, such as SecOC, MACsec, IPsec, and (d)TLS. During the development of vehicles and their electronic control units, sufficient testing of the implemented countermeasures must be performed to validate the cybersecurity goals.

dSPACE HIL test systems are well-suited for conducting the following types of cybersecurity test: 

  • Functional and conformance testing of the implemented security mechanisms according to their specifications, including safety-security dependency testing. 
  • Fuzzing and penetration testing: explorative testing to minimize unidentified weaknesses and vulnerabilities, validate cybersecurity goals, and confirm that no unreasonable risk remains. 

Realistic Validation with VIL and HIL

Vehicle-in-the-Loop (VIL) testing enhances Hardware-in-the-Loop (HIL) setups by adding real-world dynamics to digital validation. VIL makes it possible to test a complete vehicle with regards to its driver assistance/automated driving systems (ADAS/ADS) by simulating the driving environment and scenarios in real time and stimulating the sensors relevant for ADAS. ADAS-VIL tests are a special case of ADAS-HIL tests. In this case, the “hardware” in the loop is the complete vehicle.

Application Areas

The dSPACE HIL systems are suitable for a wide range of application areas, from automotive topics to aerospace to railway and marine.

 

E-Mobility

  • Charging Technologies

    Develop and test smart charging technologies across various development phases, from software-in-the-loop (SIL) tests to hardware-in-the-loop (HIL) tests at the signal and power levels.

  • Battery Management Systems

    Developing and testing battery management systems for electric vehicles

  • Hydrogen Fuel Cells

    Developing and testing fuel cell technologies for electric vehicles

  • Power Management

    Developing and testing DC/DC converters and other power electronics components related to electric vehicles

  • Traction Motors

    The dSPACE development environment provides very flexible support for developing and testing drives for the vehicle main traction unit from the signal level to the full power level.

Autonomous Driving

  • dSPACE HIL for Autonomous Driving

    dSPACE offers a comprehensive portfolio for closed-loop and open-loop testing of high-performance computers (HPCs) for autonomous driving.

Automotive Core

  • Powertrains

    dSPACE offers hardware and software solutions for prototyping, developing, and testing all kind of powertrains systems.

  • Vehicle Connectivity

    No matter which communication technology you prefer – dSPACE solutions help you bring connected cars to the market faster.

  • Bus & Networking Protocols

    dSPACE provides a broad range of software and hardware solution to cover topics such as restbus simulation, virtual bus simulation, or bus communication testing.

  • Body & Comfort Electronics

    dSPACE offers the right tools for developing and testing Body & Comfort Electronics in vehicles.

  • Chassis

    For the development and testing of new chassis control strategies, multiple components such as steering, braking, and wheel suspension have to be considered to achieve higher driving safety, comfort, and agility.

On- & Offroad Commercial Vehicles

  • Commercial & Off-Highway Vehicles

    Highly flexible and scalable development and test solutions for commercial vehicles such as trucks, buses and off-highway vehicles

Aerospace

  • Electric Flight

    Enabling the future of air transportation

  • Aircraft Systems

    Aircraft systems perform a multitude of safety-critical functions in all conceivable flight situations. Hardware and software products from dSPACE play a key role in ensuring the safe operation of these systems.

  • Space

    Shaping the future of space flight according to the highest standards

Industrial Automation and Transportation

  • Energy Industry

    Developing and testing technologies for the energy infrastructure

  • Rail Industry

    Develop and test alternative drives and autonomous driving for trains

  • Marine

    Develop and test alternative propulsion systems and autonomous driving for ships

  • Machinery and Power Tools

    Comprehensive solutions for machinery and power tools to bring ideas to life, ranging from control prototyping, model-based production software development, digital twins to test benches for full-power testing.

This sounds interesting. Get in touch:

Further Information

Videos

Our videos on HIL testing cover short feature demonstrations, interviews, and detailed technical introductions.

Watch our videos on HIL Testing

Use Cases

Our use cases give an even deeper insight of what you can do with hardware-in-the-loop systems.

Discover our HIL testing use cases

Success Stories

Our customers success stories give you an overview of the wide range of application scenarios dSPACE HIL simulators are being used in.

Read more about HIL success stories

Stay up-to-date with our dSPACE direct newsletter service.

With our dSPACE newsletter service, we will keep you informed about current use cases and new solutions and products, as well as trainings and events. Sign up here for a free subscription.

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.