CarSim Simulation Quick Start (24) - Input and Output IO Interfaces in CarSim&Simulink Co-simulation

Import and export arrays for use in external simulation tools other than Simulink. The same setup is also used for LabVIEW, ASCET, FMI/FMU and possibly custom programs written in MATLAB, Python and other languages.

In all these cases, I/O channels. Import and I/O channels. The output screen is used to configure the VS Mathematical Model to meet the communication requirements of external simulation tools.

I/O channel: output

Exported variables can be written to a file for later plotting and animation, and can also be exported to other simulation environments such as Simulink, LabVIEW, ASCET, or custom software.

Figure 13 shows the I/O channel-output interface used to select output variables to be output to other software during simulation. The most typical purpose of a dataset in this library is to set up a port with one or more channels (also called signals) that will be sent from Simulink or LabVIEW to an external model. The dataset here must specify the same number of variables as expected in the external model, and the variables must be in the same order as expected in the external model.

This interface is similar to I/O channels. Write" interface, as described earlier. This also involves selecting from the available output variables. However, the datasets in this library are not used to activate them to write to a file, but rather to activate them to output .The same output variable can be activated for writing and exporting at the same time.

This interface also utilizes the labeled text files generated by VS Mathematical Models, enabling interactive browsing and viewing from spreadsheet programs. The previously described controls ( - ) function on this interface

Guess you like

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