Real-Time (RT) Testing
Physical testing and simulation join in real-time to evaluate hardware being driven by a software vehicle dynamics model.
For example, the system shown in the top figure on the right has an antilock brake system (ABS) electronic control unit (ECU) being tested on a bench, working in a virtual car provided by CarSim. The ECU "thinks" it is in a car and controls and communicates with the virtual brake system in the CarSim math model.
HIL and SIL
From the simulation point of view, the ECU is hardware-in-the-loop (HIL)—simulation results depend on both the math model and the physical hardware, which interact in real-time. From the hardware point of view, the CarSim model is software-in-the loop (SIL), contributing to the effectiveness of a hardware test procedure.
How It Works
CarSim, TruckSim, and BikeSim models run on most computers faster than real-time, meaning a simulation of a 30-second test is completed in less than 30 seconds. The models support the MATLAB/Simulink block control interface, the LabView interface, and others. This not only gives compatibility with Simulink and LabView, but also provides a full support for any real-time testing software that uses the same interface. To run in HIL, the model receives measured variables from the hardware. The hardware in turn receives calculated variables from the math model.
To obtain real-time operation, the software obtains calculations from the model and then waits for the clock to catch up. (A 30-second simulated test must take exactly 30 seconds to run when there is HIL.) The precise timing needed to communicate with electronic controllers is provided by RT software running on a special RT operating system.
We provide the models ready to run on the major RT operating systems, including QNX, RT-Linux, dSPACE, and others. A host computer with Windows runs the graphical database, animator, plotter, and supporting software. A target computer with the RT OS runs the math models together with data acquisition/transfer software.
Live and Post-Processing Visualization
Any commercial RT system includes live plotting and analysis options, which can be applied to the CarSim/TruckSim/BikeSim models, along with any hardware in the loop. Further, all of the post-processing capabilities from our software still work, including the built-in plotter, the animator (with overlays, slow motion, etc.), and automatic export to Excel, MATLAB, and other external software. In addition, the RT versions of our simulations support live animation of the vehicle during testing with SurfAnim (our animator). During live animation mode, SurfAnim uses the same shape files, camera settings, etc. as it uses in the off-line mode, so no extra learning or setup is required.
Compatible with Many Systems
CarSim, TruckSim, and BikeSim RT support a variety of target machines and a variety of RT software suppliers. For example, customers are currently using CarSim RT on systems from:
- A&D (Simulink and RT-Linux),
- dSPACE GmbH (Simulink w. dSPACE OS),
- ETAS (RTPC Linux and optionally Simulink),
- Fujitsu-TEN (Simulink and RT-Linux),
- National Instruments (LabView RT and optionally Simulink),
- Opal-RT (Simulink with QNX or Redhawk Linux),
- PhaseX (Bench Wizard),
- Custom (user-developed systems based on QNX or RT-Linux).
In all cases, the same models are used, with the same equations, solution methods, inputs, outputs, and post-processing tools. Users can runs datasets in real-time on different systems based on HIL needs, and exchange data sets with other users running on different systems, and users running off-line on ordinary Windows machines.
Historically, the architecture of our software has enabled the math model solver programs to work on almost any computer that has an ANSI C compiler. This contrasts with most other RT vehicle models (commercial or in-house) that have been developed for a single system, and require significant development work to be ported to work with other systems. For example, CarSim RT was selected in 2003 by the Japanese MathWorks Automotive Advisory Board (J-MAAB) as the benchmark for RT vehicle dynamics. The selection was not too competitive: at that time, CarSim RT was the ONLY comprehensive vehicle dynamics software that could be run with more than a single RT system!
RT versions of CarSim, Bikesim, and TruckSim can be added to existing HIL systems at a low cost similar to our off-line versions. Various turnkey solutions are also available from our real-time partners. The low price and high performance of these systems is staggering!
Real-Time Advantages
HIL simulation systems:- eliminate the need for component software models;
- are accurate — they include all of the effects of the hardware;
- are safe for simulating hazardous road conditions or driving behavior; and
- make it easy to run simulations for hardware fault evaluations.
Computers have become so fast and inexpensive that real-time hardware (see above) is only a few thousand dollars (for a minimal system) —an order of magnitude less expensive than just a few years ago.
General Information
Main Products
CarSim
CarSim for Motorsports
TruckSim
BikeSim
SuspensionSim (K&C)
Supporting Technology
Easiest to use: GUI and database
View animations of results
View plots and analyze results
VehicleSim Technology
Simulink, LabView, ASCET, and C
Automation
Real-time HIL testing
Driving Simulators

























