FMU Export - Model Exchange & Co-Simulation

6 visualizzazioni (ultimi 30 giorni)
Victor
Victor il 30 Set 2024
Commentato: Sandeep Mishra il 3 Ott 2024
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.
  3 Commenti
Victor
Victor il 1 Ott 2024
I have the same issue with all the Simulink model files I have tried with.
In these models, I use the typical blocks that are used in control applications for power converters based on power electronics, i.e. battery chargers, wind turbines... For instance, I use delays, arithmetic operations, integratos, low-pass filters, look-up tables, abc-dq transformations, conditional statements...
Thank you very much in advance.
Best regards,
Víctor Sánchez Suárez
Norvento Enerxía S.L.
Sandeep Mishra
Sandeep Mishra il 3 Ott 2024
I successfully exported the "Anti-Windup Control Using PID Controller Block" example simulink model to 'Model Exchange' FMU using the exportToFMU function. Could you please share your Simulink model file for further assistance? You can open the example model with the following command:
openExample('simulink_industrial/AntiWindupControlUsingAPIDControllerExample')

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by