FMU Export – Model Exchange & Co-Simulation
Dear Sir or Madam,
I have recently seen that FMU exportation under Model Exchange option has been included in MATLAB R2024b release.
I am trying to export a Simulink model as FMU – Model Exchange using the command:
exportToFMU(SimulinkModelName, ‘FMIVersion’, ‘2.0’, ‘FMUType’, ‘ME’)
However, I get the following error:
The make command returned an error of 2
Build Summary
Top model targets:
Model Build Reason Status
====================================================================================================================
SimulinkModelName Information cache folder or artifacts were missing. Failed to build. For more information, see build log.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 27.437s
Error using exportFMU_ME (line 36)
Error(s) encountered while building "SimulinkModelName"
I had successfully exported this same model as FMU – CoSimulation.
exportToFMU2CS(SimulinkModelName)
Why is it possible to export the model under the CoSimulation option and not under the Model Exchange option?
Thank you very much in advance.
Best regards,
Víctor Sánchez Suárez
Norvento Enerxía S.L.Dear Sir or Madam,
I have recently seen that FMU exportation under Model Exchange option has been included in MATLAB R2024b release.
I am trying to export a Simulink model as FMU – Model Exchange using the command:
exportToFMU(SimulinkModelName, ‘FMIVersion’, ‘2.0’, ‘FMUType’, ‘ME’)
However, I get the following error:
The make command returned an error of 2
Build Summary
Top model targets:
Model Build Reason Status
====================================================================================================================
SimulinkModelName Information cache folder or artifacts were missing. Failed to build. For more information, see build log.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 27.437s
Error using exportFMU_ME (line 36)
Error(s) encountered while building "SimulinkModelName"
I had successfully exported this same model as FMU – CoSimulation.
exportToFMU2CS(SimulinkModelName)
Why is it possible to export the model under the CoSimulation option and not under the Model Exchange option?
Thank you very much in advance.
Best regards,
Víctor Sánchez Suárez
Norvento Enerxía S.L. Dear Sir or Madam,
I have recently seen that FMU exportation under Model Exchange option has been included in MATLAB R2024b release.
I am trying to export a Simulink model as FMU – Model Exchange using the command:
exportToFMU(SimulinkModelName, ‘FMIVersion’, ‘2.0’, ‘FMUType’, ‘ME’)
However, I get the following error:
The make command returned an error of 2
Build Summary
Top model targets:
Model Build Reason Status
====================================================================================================================
SimulinkModelName Information cache folder or artifacts were missing. Failed to build. For more information, see build log.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 27.437s
Error using exportFMU_ME (line 36)
Error(s) encountered while building "SimulinkModelName"
I had successfully exported this same model as FMU – CoSimulation.
exportToFMU2CS(SimulinkModelName)
Why is it possible to export the model under the CoSimulation option and not under the Model Exchange option?
Thank you very much in advance.
Best regards,
Víctor Sánchez Suárez
Norvento Enerxía S.L. fmu, cosimulation, model exchange, fmi MATLAB Answers — New Questions