- On Linux:
How to export simulation and use it in Python?
33 次查看(过去 30 天)
显示 更早的评论
Hello =)
I´m trying to export a Simulink model and use it with python.
I have tried to export the model as a FMU with :
This is going well so far. The problem is that i cannot import this FMU in python. There always is an error:
The current platform (linux64) is not supported by the FMU.
So the problem is I build the FMU on a Windows Machine and want to use it on a linux machine.
Is there any way to build the FMU for linux, or maybe there are other solutions for exporting a Simulink model?
Regards, Jacob
0 个评论
回答(1 个)
Pratheek Punchathody
2021-2-17
Looks like you want to export the Simulink Model and import it into python.
When a third-party tool runs the FMU, it checks out required licenses and starts a local installation of Simulink to start the model. Tool-coupling FMUs support fixed-step and variable-step solvers.
The exported FMU requires a local installation of Simulink to run. The MATLAB version used for co-simulation must be the same as the MATLAB version where the FMU is exported. On Windows®, the application that runs the FMU can check out the required licenses automatically. For other operating systems, apply these settings:
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<InstallationFolder>/bin/glnxa64:<InstallationFolder>/extern/bin/glnxa64 (csh/tcsh)
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<InstallationFolder>/bin/glnxa64:<InstallationFolder>/extern/bin/glnxa64 (bash)
Hope this helps
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Create Standalone FMU 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!