Why does MATLAB crash when simulating a generated FMU in Simulink Compiler?
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 8 Ago 2022
Modificato: MathWorks Support Team
il 28 Ott 2022
When I created a FMU file by Simulink Compiler and run it on my Simulink model, MATLAB crashed without any error messages and log files.
Risposta accettata
MathWorks Support Team
il 28 Ott 2022
Modificato: MathWorks Support Team
il 28 Ott 2022
This behavior occurs in the case that you haven't installed supported compilers in R2020a and later release.
In this case, build-in compiler LCC-win64 is used for creating a FMU.
However, the purpose for LCC compiler is to aid inhouse products such as Stateflow and MATLAB Function Block simulate, so that we don't recommend to use it for other applications (Sfunctions, MEX files, FMUs, accelerators, SIL/PIL).
To work around the issue, please install one of supported C Compilers like MinGW.
For all supported compilers, see https://www.mathworks.com/support/requirements/supported-compilers.html
Note: If you use Simulink Coder, you can verify the compiler used for code generation:
In the Configuration Parameters window(Ctrl+E), you can go to Code Generation -> Build process -> Toolchain Settings -> Toolchain Or In the MATLAB Command prompt(commandline): get_param('modelname', 'Toolchain')
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Coder 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!