fmu can import into Simulink, and it can run normally with my model,but can not compiled with my model;the error is .../FMU does not support code generation.
Afficher commentaires plus anciens
Réponses (1)
Prathamesh
le 21 Sep 2023
0 votes
Hi,
I understand that you are receiving the error message stating that “the FMU does not support code generation”.
This error occurs when you are trying to generate code for an FMU block that is not supported for code generation.
To resolve this issue, you can follow the pointers mentioned below:
- Declare the FMU function as extrinsic in your MATLAB code, to call the unsupported FMU function in a MEX. The function bypasses code generation and instead uses the MATLAB engine to execute the call.
- Manually implement the FMU function as custom MATLAB code that is supported for code generation or C/C++ code.
For more information refer to the documentation attached below which explains the steps to resolve this error in detail.
Catégories
En savoir plus sur FMU Importing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
