- On Linux:
How to export simulation and use it in Python?
    19 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
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 Commenti
Risposte (1)
  Pratheek Punchathody
    
 il 17 Feb 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 Commenti
Vedere anche
Categorie
				Scopri di più su Create Standalone FMU in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

