To integrate Simulink® components into third-party software, export a Simulink model as a tool-coupling functional mockup unit (FMU). When a third-party tool runs the FMU, it checks out required licenses and starts a local installation of Simulink to start the model. This function requires the Tool-Coupling Co-Simulation FMU Export for Simulink support package. Use the Add-On Explorer to download and install the support package.
Note that since MATLAB R2019a, packaging a model as an FMU for co-simulation no longer requires a support package. This is now a built-in feature in Simulink. For more information, see:
I also lack the path
but I found that, god knows why, the installation saves the files the hidden folder "ProgramData" on C:\, so that in my PC the correct path is
Hope this can help you and others.
I try to create a FMU with Simulink and import it later in Simulink.
I found the explanation: https://de.mathworks.com/help/simulink/ug/export-model-as-tool-coupling-fmu.html?searchHighlight=FMU%20export&s_tid=doc_srchtitle#responsive_offcanvas
but I don't have the path <matlabroot>\toolbox\shared\fmu_share\script\fmu-matlab-setup.cmd on my PC.
Could somebody explain how I can "Start a Dedicated Session from the Operating System"?
The command "shareMATLABForFMUCoSim" does also not work.
@ Rafael: this Add-on only works with 18b. In 19a it is integrated as a part of Simulink.
Can confirm, it doesn't work with 2019a, also on Linux
What are requirements for this add-on?
I have MATLAB 2019a and Windows 7 but being told it is not compatible.
Please discard my below comment. I did not start the server and hence the error. After starting the server, it works fine.
One enhancement suggestion which would be useful is to run the server on another PC and still be able to simulate. Cross platform would be even great. Like FMU imported in Linux and MATLAB server running on Windows.
I maybe find a bug using this plug-in tool.
In simulink model，I set the solver type was Fixed-step Solver，solver was ode4（Runge-Kutta）,Fixed-step size was 1e-9. The simulink model was exported to FMU file,then the FMU file was imported in third-party software(AMESim). In third-party software, I set co-simulation step size of FMU was 1e-09s ,model can not simulate successfully. But co-simulation step size of FMU was set ≤ 1e-07s，model simulated successfully. But this error did not occur when I used FMU file which was exported by Modelon plug-in tool named FMI toolbox to simulate in third-party software .
OK, it seems the possibility is available from 2018.
how can I find the release for 2017b? Thanks
is something comparable available for previoous releases as well (2015b / 2017b)?
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!