MATLAB Answers

How to reduce the C code generation time on Simulink?

3 ビュー (過去 30 日間)
Marnaud NDUNGU
Marnaud NDUNGU 2019 年 4 月 24 日
Commented: Marnaud NDUNGU 2019 年 5 月 3 日
I am currently working on a project (modelisation a magnetic bearing with a rotor) and I have noticed that it requires about eleven hours for C-code generations that is very annoying. I tried to reduce my model in that way : now for the modelisation of my rotor I only have two continuous integrator and a gain but the C-code generation still requires 2h30... I really don't know how I could fix this problem.. :(

  0 件のコメント

サインイン to comment.

件の回答 (2)

Mark McBroom
Mark McBroom 2019 年 4 月 24 日
Approx how many blocks are in your model? Are you using basic Simulink blocks are are you using Simscape blocks?

  0 件のコメント

サインイン to comment.


Marnaud NDUNGU
Marnaud NDUNGU 2019 年 4 月 25 日
編集済み: Marnaud NDUNGU 2019 年 4 月 25 日
I am using just basic blocks, in a subsystem with a mask :
It is actually a simple block.. not even high calculation in there !

  2 件のコメント

Mark McBroom
Mark McBroom 2019 年 4 月 25 日
It does not make sense that this model would take so long to generate code. I suggest you contact support@mathworks.com and send them your model.
Marnaud NDUNGU
Marnaud NDUNGU 2019 年 5 月 3 日
Ok I will send them an enail. Thank you !

サインイン to comment.

サインイン してこの質問に回答します。


Translated by