How to reduce the C code generation time on Simulink?

조회 수: 6 (최근 30일)
Marnaud NDUNGU
Marnaud NDUNGU 2019년 4월 24일
댓글: 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.. :(

답변 (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?

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 !

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

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by