Effacer les filtres
Effacer les filtres

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.

16 vues (au cours des 30 derniers jours)

Réponses (1)

Prathamesh
Prathamesh le 21 Sep 2023
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:
  1. 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.
  2. 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 Create Standalone FMU dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by