For a better experience on dSPACE.com, enable JavaScript in your browser. Thank you!

Real-Time Testing

Python-based real-time test automation

Python-based test automation – 100% reproducible real-time tests executed synchronously with simulation model

  • Test Automation Tools Support Center

    This website provides a link list for fast access to the most important support information for Test Automation Tools

    More information

  • Real-Time Testing

    Real-time hardware can be accessed via an interpreter running on the processor board. Since the interpreter is executed at the same rate as the realtime application, it can be used to perform real-time tests. This training course provides an introduction to programming real-time tests based on the Python programming language. Course participants will discuss standard applications and implement them in practical examples.

    More information

Application Areas

Automated testing is usually performed by executing tests on a standard PC connected to the hardware-in-the-loop (HIL) system. However, this method often cannot cope where greater timing precision is required – for example, if ECU interaction has to be captured and responded to in a range of milliseconds. Real-Time Testing with its Python scripts for real-time testing is the answer. 

Key Benefits

The scripts run on the processor board of the HIL system in real time, i.e., synchronously with the model, so all test actions are performed on a real-time basis – 100% reproducibly. This opens up expanded test options with dSPACE Simulator. Reactive tests which respond to changes in model variables within the same simulation step can be implemented. Time measurements in tests are also far more precise, as there are no latencies in communication. Simulation step size is now the only limit to the maximum time resolution of measurements. Real-time test scripts do not only run on HIL systems but also on VEOS, dSPACE's platform for PC-based offline simulation. Therefore, you can reuse the test scripts seamlessly throughout the entire development process – from virtual validation to HIL simulation.

Functionality Description
Real-Time Testing
  • Real-time test management by scripting and dedicated graphical user interface
  • Real-Time Testing library in AutomationDesk for convenient script management
  • Model variables can be observed and changed in every simulation step
  • No model modification necessary for real-time testing
  • Transparent variable access in multiprocessor systems
100% reproducible real-time tests in Python
  • Python tests executed synchronously with simulation model
  • Real-time tests implemented in Python (user-extensible via libraries)
  • Concurrent execution of several independent test scripts
  • Dynamic test loading during model and test execution
  • Read and write access to model variables in every simulation step
  • No need to modify the simulation model
Easy integration
  • Easy integration into user-defined test frameworks (AutomationDesk or others)
  • CAN support of real-time tests (based on RTI CAN MultiMessage Blockset or Bus Manager)
  • Use of measured data such as MAT files located on host PC for real-time stimulation of model variables
  • Python objects can be easily exchanged between real-time tests and the PC Python script
  • NEW: Seamless support of all dSPACE platforms1)
    • Available for DS1006 Processor Board, DS1007 PPC Processor Board, and SCALEXIO® (for single-processor and multiprocessor systems)
    • Available for MicroAutoBox®, MicroLabBox®, and VEOS
  • NEW: Virtual ECU (V-ECU) support
    • Stimulation and monitoring of signals and variables in V-ECUs
  • NEW: Bus Manager support for SCALEXIO platforms allows sending and receiving of CAN and CAN FD messages without RTI CAN MultiMessage Blockset in the real-time model
  • NEW: Host call support for all dSPACE platforms makes it easy to pass test data of a real-time test to a test tool on the PC

1) Except DS1104.

Related Topics