CarSim Simulation Quick Start (22) - Set IO Write Out in CarSim2022

The VS math model can be launched and controlled through the VS browser, so that no other software is required. The main product of a simulation activity is an output file containing the time history of the variables of interest, which can be plotted with VS Visualizer or used to generate animations. Output can also be automatically written to a file that can be opened in Excel (and other spreadsheet programs) or MATLAB.

The VS mathematical model of the vehicle can also be launched and controlled from other simulation environments such as MATLAB, Simulink, LabVIEW, ASCET, FMI compliant software and custom software. Most external software tools use import and export variable arrays to transfer information into or out of the VS Math model. VS Math supports hundreds of activatable import variables, and thousands of activatable export variables.

Note that SuspensionSim products include I/O channel writing libraries and support for exporting data to Excel and MATLAB. However, it does not include libraries for interfacing with Simulink and other time-domain simulation environments that may be used for BikeSim, CarSim, and TruckSim.

output file

Every VS Math model includes some output variables that can be written to a file for later plotting and animation. For example, a four-wheel CarSim model has at least about 600 built-in output variables. If the model is extended with motion sensors, moving objects, odometry and detection sensors, etc., the number of available output variables can increase to tens of thousands. Vehicle models with trailers start with more built-in variables. Users can also define new output variables with the VS command to further increase the number of variables.

A VS Math model can be set to write the time history of all existing output variables to a file. This option can be set for any simulation via a checkbox on the run control interface (Figure 1). If this checkbox is unchecked,

Guess you like

Origin blog.csdn.net/xiaoming0907/article/details/129943674