C Caller does not reflect changes in C-Code on Simulink Model
3 次查看(过去 30 天)
显示 更早的评论
I would like to use a C Caller Block to include simple C-code in my Simulink model. For this I have written a .c- and a .h-file. When you first start the model works fine. Now I want to change something in my C-code in the .c-file, but the changes are not reflected in the Simulink model.
It works when I completely close MATLAB, delete the slprj-folder in my project folder, and then start the Simulink model again. But is there no other way?
0 个评论
回答(1 个)
Jonas
2019-8-14
编辑:Jonas
2019-8-14
Could you try to go into your Simulink Configuration Parameters => Model Referencing and set Rebuild to Always. It may be ignoring parts of your model because no changes were detected, but it only detects changes in Simulink blocks, not external code. If the embedded C-code is not in a referenced model however, the setting is not going to help.
Alternatively, you should change your accelerator mode to 'Normal'. If you use 'Accelerator' mode it will not rebuild but keeps using previously built files.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!