Real-time Simulation

MotionSolve's real-time option for vehicle models allows you to create a real-time capable model “on-the-fly” from the fully parameterized MotionView wizard model and solve it in real time.

MotionSolve Real-time Simulation

Models with flexible bodies, complex geometries, and a large number of degrees of freedom can be simulated in real time with one click.

Using code generation, the real-time simulation uses a superior approach and runs at a constant step and at a constant cost integrator using Functional Mockup Unit (FMU) export and C code generation. FMU is a vendor-neutral format that allows you to integrate MotionSolve models into other environments. You can use code generation to compile the model on any proprietary real-time hardware.

The Real-time and Code Generation options are available in the MotionView events. When you select Real-time for MotionSolve, the vehicle model is solved in real time. When you select Code Generation, the C code for the MotionSolve vehicle model, excluding the driver and tire, is generated. The readme.txt file contains the instructions to build the code. You can use this code to compile and build an FMU, which can be used with any FMU-compatible software.
Note: A separate license is required for code generation.
MotionSolve Real-time uses Twin Activate and the MotionSolve path, which needs to be updated in Twin Activate under Preferences to run MotionSolve Real-time.
Figure 1.


To specify the Co-simulation with MotionSolve path values:

  • From the Preferences dialog, select Twin Activate > Paths > Cosimulation with MotionSolve.
    Define the following values as described:
    MotionSolve
    <install_directory>/hwsolvers/motionsolve/bin/<platform>
    MotionSolve license
    <install_directory>hwsolvers/common/bin/<platform>
    PYTHONHOME
    <install_directory>/common/python/python3.8/<platform>
    PYTHONPATH
    <install_directory>/hwsolvers/motionsolve