C Caller does not reflect changes in C-Code on Simulink Model

2 vues (au cours des 30 derniers jours)
Evelyn Ruppel
Evelyn Ruppel le 14 Août 2019
Modifié(e) : Jonas le 14 Août 2019
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?

Réponses (1)

Jonas
Jonas le 14 Août 2019
Modifié(e) : Jonas le 14 Août 2019
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.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by