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

14 次查看(过去 30 天)
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

回答(1 个)

Jinal
Jinal 2023-2-17
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.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by