Mechanical Simulation Extends User Programming for CarSim, TruckSim and BikeSim2019.1
The simulation modules include a scripting language called VS Commands that has been available for controlling moving objects, defining actions based on detected signals, and other applications.
Latest in System Simulation
System Simulation Resources
August 15, 2019
Mechanical Simulation Corporation has released the 2019.1 versions of the vehicle dynamics simulation tools CarSim, TruckSim and BikeSim, known for providing math models that reproduce physical test results, yet run fast enough on the computer to support real-time simulation with hardware in the loop, the company reports.
The simulation modules include a scripting language called VS Commands that has been available for controlling moving objects, defining actions based on detected signals and other applications.
“The VS Command language was created before ADAS applications were of interest and was mainly used to define new output variables and provide limited calculations,” says James Beyer, product development engineer. With newer versions supporting up to 200 moving objects and 99 ADAS sensors, there has been an increasing need for more options that advanced users may provide to extend the simulation capability.
Using VS Commands, the user can extend models in substantive ways. This is done within the solver framework and needs no external resources. However, VS Commands have limits, and some common programming tools and techniques (looping, strings, accessing third-party packages, etc.) are problematic using only VS Commands.
To support more complicated model extensions made within the solver, VS Solvers have supported an internal (embedded) Python interpreter since 2018.1. In 2019.1, the company has added the capability for Linux Solvers and added some simpler examples and additional documentation to show how the embedded Python capability can be used. Currently Embedded Python is not available for RT systems applications.
In addition to the improvements to Embedded Python, VS Commands have been enhanced to allow for defined VS functions that can be created by the user. Defined functions, along with the new IF command, allow for the conditional execution of groups of commands. This allows for simpler, cleaner code when a condition changes during a simulation which requires the updating of several variables. “The good thing about the defined functions,” Beyer notes, “is that they are an enhancement to the VS Commands themselves, and work on all platforms, Windows, Linux and all of the RT platforms.”
Sources: Press materials received from the company and additional information gleaned from the company’s website.
About the Author
DE’s editors contribute news and new product announcements to Digital Engineering.
Press releases may be sent to them via [email protected].