Is it possible to have a 'Rebuild All' option for Custom code in my model in Real- Time Workshop 5.4 (R2009b)?
1 view (last 30 days)
Show older comments
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.
Accepted Answer
MathWorks Support Team
on 16 Dec 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 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!