- 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.
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.
21 views (last 30 days)
Show older comments
Answers (1)
Prathamesh
on 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:
For more information refer to the documentation attached below which explains the steps to resolve this error in detail.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!