- On Linux:
How to export simulation and use it in Python?
18 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Pratheek Punchathody
le 17 Fév 2021
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 commentaires
Voir également
Catégories
En savoir plus sur Create Standalone FMU dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!