How can I generate code using embedded coder for a model that I have as FMU (FMU import block or otherwise) ?

조회 수: 3 (최근 30일)
Hello! I have a model delivered as an FMU from our supplier. Thanks to the recently new FMU import block, I have been able to use this on my desktop simulations using Simulink. However, I would like to generate code for this using embedded coder for a specific target. I noticed that code generation support field was left blank in one of the help/documentation files from Matlab. Link here
How could I generate code for this FMU? Is there any other way such as using an S-function, instead of FMU import block? Any insight here would be helpful.
Thanks for your help! Regards, Kallur
  댓글 수: 2
Chris Williams
Chris Williams 2020년 3월 25일
Hi Kallur. Did you ever solve this problem? I am in a similar situation: 3rd party delivers a model as FMU, now I'd like to compile it but the Diagnostic Viewer says that the FMU does not support code generation...
Kind regards, Chris
Mutlu Senturk
Mutlu Senturk 2021년 7월 6일
Has anybody had that issue resolved yet? I'm having the same problem with the FMU model provived by te Supplier, I could not generate C-code.
Thanks

댓글을 달려면 로그인하십시오.

답변 (1개)

Yash
Yash 2025년 2월 16일
Code generation for Simulink model with FMU block is supported. Here's the details:

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by