model_SetEventsForThisBaseStep

Set event flags for multirate, multitasking operation before calling model_step for ERT-based Simulink model — not generated as of Version 5.1 (R2008a)

Syntax

void model_SetEventsForThisBaseStep(boolean_T *eventFlags)
void model_SetEventsForThisBaseStep(boolean_T *eventFlags, RT_MODEL_model *model_M)

Arguments

eventFlags

Pointer to the model's event flags array.

model_M

Pointer to the real-time model object. The Real-Time Workshop Embedded Coder software generates this argument only if Generate reusable code is on.

Description

Versions of the Real-Time Workshop Embedded Coder software prior to Version 5.1 (R2008a) generate the model_SetEventsForThisBaseStep function for multirate, multitasking models. The function maintains model event flags that determine which subrate tasks need to run on a given base rate time step. In a multirate, multitasking application, the program code must call model_SetEventsForThisBaseStep before calling the model_step function.

See Also

model_initialize, model_step, model_terminate

Model Entry Points in the Real-Time Workshop Embedded Coder documentation

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS