Planificar componentes del modelo
Planificar los componentes del modelo para realizar la simulación o la integración con un planificador externo requiere que los algoritmos existan en bloques atómicos Subsystem o Model. El ritmo de ejecución se especifica como periódico (subsistema planificado) o no periódico (subsistema de llamada a función).
Las particiones son componentes de un modelo que se ejecutan independientemente como tareas atómicas. En los modelos multitarea, las particiones se crean a partir de los componentes del modelo. Con las particiones, puede separar las partes del modelo que puede controlar explícitamente en la herramienta Schedule Editor.
Schedule Editor es una herramienta de planificación que representa los componentes del modelo conocidos como particiones, las conexiones de datos entre ellos y el orden de esas particiones. Esta herramienta solo puede utilizarse en los componentes existentes, como los subsistemas atómicos, las funciones de exportación y los bloques de modelos. Schedule Editor es una herramienta interactiva que permite ver y editar fácilmente la planificación de los componentes del modelo.

Bloques
Herramientas
| Schedule Editor | View and edit the schedule of model components (partitions) | 
Objetos
| simulink.schedule.OrderedSchedule | Creates an OrderedScheduleobject containing priority order of
      the partitions of a model | 
| simulink.event.InputWrite | Trigger schedule event when input port value updates (Desde R2022b) | 
| simulink.event.InputWriteTimeout | Trigger schedule event when input port value does not update within specified time (Desde R2022b) | 
| simulink.event.InputWriteLost | Trigger schedule event when update to input port value overwrites unprocessed data (Desde R2022b) | 
Funciones
| Simulink.BlockDiagram.getExecutionOrder | Open Execution Order pane (Desde R2022b) | 
| simulink.schedule.createSchedule | Create a new schedule using provided schedule and ordering | 
Temas
Modelos de función de exportación
- Export-Function Models Overview
 Overview of export-function models and requirements for building models.
- Create Export-Function Model
 Take the first step for creating independent functions in the generated code.
- Test Export-Function Model Simulation Using Input Matrix
 Use an input matrix to specify and test function-call event scheduling.
- Test Export-Function Model Simulation Using Function-Call Generators
 Use multiple Function-Call Generator blocks to test function-call event scheduling.
- Test Export-Function Model Simulation Using Stateflow Chart
 Use a Stateflow® chart to test function-call event scheduling.
- Test Export-Function Model Simulation Using Schedule Editor
 Use the Schedule Editor to test function-call event scheduling.
- Generate Code for Export-Function Model
 Generate code for functions that can be integrated with an external scheduler.
- Generate Code for Export-Function Model with Rate-Based Model
 Generate code from models with function-call and scheduled subsystems.
Modelos basados en el ritmo de ejecución
- Create Rate-Based Model
 Explicitly schedule rates for models and subsystems.
- Test Rate-Based Model Simulation Using Function-Call Generators
 Simulate rate-based model using test harness and function-call generators.
- Generate Code from Rate-Based Model
 Generate code from rate-based model, view report, and examine entry points.
Orden de ejecución
- Control and Display Execution Order
 Determine the execution order among blocks within tasks.
- Sorting Rules for Explicitly Scheduled Model Components
 Simulink® determines the execution order for model components, that is, subsystems and referenced models.
Particiones en Schedule Editor
- Create Partitions
 Learn the concept of partitions and how to create them from a model.
- Schedule the Partitions
 Learn about the order of the partitions and how to edit the schedule.
- Generate Code from a Partitioned Model
 Learn about the impact of partitioning and editing the schedule on code generation.
- Events in Schedule Editor
 An event is a construct that represents an action, transition, or condition.


