Is it possible to have a 'Rebuild All' option for Custom code in my model in Real- Time Workshop 5.4 (R2009b)?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have custom initialization code included in my model. The code resides in a "custom_init.c" file that also references a "custom_init.h" file.
If I change the contents in any of these files (.h or .c) and then hit the Incremental build option to rebuild the code, the changes do not take place. It seems like the MEX file generated still uses the previous value and does not get regenerated.
In particular, my header file has a '#define' that sets a value and this does not reflect in the functionality after hitting incremental build.
I would like to be able to have a 'rebuild all' option with which I can insist that my custom code rebuilds each time in case it has changed.
Réponse acceptée
MathWorks Support Team
le 16 Déc 2009
The ability to perform a 'rebuild all' which includes changes made to custom code is not available in Real-Time Workshop.
As a workaround, if your model has Embedded MATLAB blocks, Stateflow charts or Truth table blocks, you can use the 'Rebuild all (including libraries)' option available in the Simulation target pane which rebuilds the target including libraries.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!