Is there a possibility to export C code generated from matlab coder as an FMU?

I am new to FMU, till now I was working on Simulink models and exporting the Simulink models as FMUs was simple as I had Modelon toolbox installed. Now my requirement is exporting the C code generated from matlab coder as FMU, is there any toolbox which can perform this activity?

답변 (3개)

Lisa B.
Lisa B. 2018년 12월 7일
편집: Lisa B. 2018년 12월 7일
I am also interested in compiling an FMU from c code. Did you many any progress on this?
saikrishna devarashetty
saikrishna devarashetty 2018년 12월 7일
I wasn't successful in finding a tool. So I just used the FMU SDK provided by Qtronic.
Following site was helpful for me.
Walter Roberson
Walter Roberson 2018년 12월 8일
편집: Walter Roberson 2018년 12월 11일
There was no supported way when the question was asked but a way was added since then.
Techniques for earlier versions are mentioned there .

댓글 수: 2

Lisa B.
Lisa B. 2018년 12월 11일
편집: Lisa B. 2018년 12월 11일
From what I have read, using the built-in toolbox in Matlab 2018 requires an instance of Matlab to be running when the fmu is ran. I would like to export a custom S-function to an FMU with no ties to Matlab. Also, I want the source code for the FMU as well. If I have a hand written S-Function, I don't see why I should have to be tied to Matlab products when it is converted to an FMU.
I do see though "You can now start the third-party application and import the tool-coupling FMU. Each FMU instance requires a new MATLAB session." so perhaps it could be completely exported that way ?

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

제품

릴리스

R2017b

질문:

2018년 8월 2일

댓글:

2018년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by