Azzera filtri
Azzera filtri

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 visualizzazioni (ultimi 30 giorni)

Risposte (1)

Prathamesh
Prathamesh il 21 Set 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.

Categorie

Scopri di più su Create Standalone FMU in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by