How to reduce the C code generation time on Simulink?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
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 个评论
Marnaud NDUNGU
2019-4-25
编辑:Marnaud NDUNGU
2019-4-25
2 个评论
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Create Large-Scale Model Components 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!