Schedule Model Components
Scheduling model components for simulation or integration with an external scheduler requires the algorithms to be placed in Atomic Subsystem or Model blocks. The execution rate is then specified as either periodic (scheduled subsystem) or nonperiodic (function-call subsystem).
Partitions are components of a model that execute independently as atomic tasks. In multitasking models, partitions are created from model components. With partitions, you can separate parts of the model that you can explicitly control in the Schedule Editor tool.
The Schedule Editor is a scheduling tool that represents the components in the model known as partitions, the data connections between them, and the ordering of those partitions. The Schedule Editor can only be used on existing components, such as atomic subsystems, export functions, and model blocks. The Schedule Editor is an interactive tool that provides an easy way to view and edit the schedule of the model components.
|Function-Call Subsystem||Subsystem whose execution is controlled by external function-call input|
|Function-Call Generator||Provide function-call events to control execution of subsystem or model|
|Function-Call Split||Provide junction for splitting function-call line|
|Function-Call Feedback Latch||Break feedback loop involving data signals between function-call blocks|
|Trigger||Add trigger or function port to subsystem or model|
Overview of export-function models and requirements for building models.
First step for creating independent functions in the generated code.
Use an input matrix to specify and test function-call event scheduling.
Use multiple Function-Call Generator blocks to test function-call event scheduling.
Use a Stateflow chart to test function-call event scheduling.
Use the Schedule Editor to test function-call event scheduling.
Generate code for functions that can be integrated with an external scheduler.
Generate code from models with function-call and scheduled subsystems.
Specify scheduling of subsystem or model.
Set periodic rates for subsystems.
Simulate rate-based model.
Generate code from the rate-based model, not from the model test harness.
Determine the execution order among blocks within tasks.
Simulink® determines the execution order for model components, that is, subsystems and referenced models.
Partitions with the Schedule Editor
Learn the concept of partitions and how to create them from a model.
Learn about the order of the partitions and how to edit the schedule.
Learn about the impact of partitioning and editing the schedule on code generation.
An event is a construct that represents an action, transition, or condition.