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 CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2009b

Community Treasure Hunt

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

Start Hunting!

Translated by