Timers and Scheduling
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.
Absolute and elapsed timers
- Time-Based Scheduling
Solver, sample rates and transitions, tasking, real-time execution, timers
- Event-Based Scheduling
Asynchronous event handling, rate transitions, timers, event data