Why is the model entry function SetEventsForThisBaseStep not in the generated code in Real-Time Workshop Embedded Coder 5.1 (R2008a)?

3 Ansichten (letzte 30 Tage)
In the generated code, the model entry function "model_SetEventsForThisBaseStep" is not generated in Real-Time Workshop Embedded Coder 5.1 (R2008a). In R2007b, this function is generated.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 29 Jun. 2011
Beginning in Real-Time Workshop Embedded Coder 5.1 (R2008a), ERT no longer generates "model_SetEventsForThisBaseStep" in model.c and model.h, and you should avoid using the function. The model event flags are now maintained by code in a model's generated example main program (ert_main.c). For more information, see Optimizing Task Scheduling for Multirate Multitasking Models on RTOS Targets in the Embedded Coder documentation.
If you want this function to be generated for compatibility reasons, replace the following line in ert.tlc or your custom system target file:
%assign InlineSetEventsForThisBaseRateFcn = TLC_TRUE
with
%assign InlineSetEventsForThisBaseRateFcn = TLC_FALSE

Weitere Antworten (0)

Kategorien

Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by