Is it possible to export a MATLAB script/function to Functional Mockup Unit (FMU) for use in other modeling tools?

14 visualizaciones (últimos 30 días)
Hi all,
I have a robot trajectory simulation in a MATLAB script and I would like to co-simulate together with other modeling tool.
I'm new to FMI and the most I've read is about Simulink. Is there any possibility to export an FMU directly from a MATLAB script (or function) or should I migrate it to a Simulink model?
Thank you,
Jon

Respuestas (1)

Jinal
Jinal el 17 de Feb. de 2023
Hi Jon,
I understand that you wish to directly export the MATLAB script/function to FMU. At present, there is no tool that allows direct conversion of MATLAB script to FMU. You can use MATLAB Function Block to implement your functions in Simulink. Then, you can export the Simulink model to FMU.
For information on how to export Simulink models to FMU, please refer the following link: https://www.mathworks.com/help/simulink/ug/export-model-as-tool-coupling-fmu.html
Hope this helps.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by