Is it possible to export a MATLAB script/function to Functional Mockup Unit (FMU) for use in other modeling tools?
16 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Jinal
on 17 Feb 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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!