Skip to Main Content Skip to Search
Product Documentation

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 Embedded Coder software generates this argument only if Generate reusable code is on.

Description

Versions of the 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

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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