shareMATLABForFMUCoSim
Share current MATLAB session for FMU tool-coupling co-simulation
Syntax
Description
shareMATLABForFMUCoSim
dedicates the current MATLAB® session available for requests from the external tool to co-simulate an
imported FMU. When an FMU is connected to this session, the Simulink® editor and Simulink project are loaded, and co-simulation starts
automatically. You can use this session to pause, resume co-simulation, tune parameters, and
plot signals from the command window while co-simulation is running. If co-simulation is
finished, stopped by you, or interrupted by a runtime error, MATLAB closes, unloads the Simulink
editor and Simulink project, and discards
changes to the model. If an error occurs, it displays in the simulation tool that imports
this FMU. Each session can connect to one FMU instance at the same time.
Examples
Version History
Introduced in R2019a