Is it possible to have a 'Rebuild All' option for Custom code in my model in Real- Time Workshop 5.4 (R2009b)?

1 回表示 (過去 30 日間)
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.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 12 月 16 日
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 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

タグ

タグが未入力です。

製品


リリース

R2009b

Community Treasure Hunt

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

Start Hunting!

Translated by