Main Content

Timers and Scheduling

Learn how the code generator supports absolute and elapsed timers and time- and event-based scheduling

Time-based scheduling requirements apply to models that use a periodic interrupt source (for example, a hardware timer) for timing.

The code generator supports time- and event-based scheduling requirements. Time-based scheduling requirements apply to models that use a periodic interrupt source (for example, a hardware timer) for timing. Event-based scheduling requirements apply to systems that must also support execution of blocks in response to events. These events are asynchronous with respect to the periodic timing source of the system.

Simulink® functions and function callers, function-call subsystems, and triggered subsystems provide a way to model reusable system components from which you can generate reusable, standalone function code. In these cases, you integrate generated function code with other function code and a run-time environment that includes scheduling support.

Categories