La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Planifier des composants de modèle
La planification des composants de modèle pour la simulation ou l'intégration avec un planificateur externe nécessite l'existence d'algorithmes dans des blocs Subsystem ou Model atomiques. La fréquence d'exécution est spécifiée comme périodique (sous-système planifié) ou non périodique (sous-système Function-Call).
Les partitions sont les composants d'un modèle qui s'exécutent de manière indépendante sous forme de tâches atomiques. Dans les modèles multitâches, elles sont créées à partir des composants du modèle. Les partitions vous permettent de séparer des parties du modèle que vous pouvez explicitement contrôler dans l'outil Schedule Editor.
Schedule Editor est un outil de planification qui représente les composants du modèle identifiés en tant que partitions, les connexions de données entre ces composants ainsi que l'ordre des partitions. Il ne peut être utilisé qu'avec des composants existants tels que des sous-systèmes atomiques, des fonctions d'exportation et des blocs de modèle. Il s'agit d'un outil interactif permettant de consulter et modifier facilement la planification des composants de modèle.
Blocs
Outils
Schedule Editor | View and edit the schedule of model components (partitions) |
Objets
simulink.schedule.OrderedSchedule | Creates an OrderedSchedule object containing priority order of
the partitions of a model (depuis R2020a) |
simulink.event.InputWrite | Trigger event when input port value updates (depuis R2022b) |
simulink.event.InputWriteTimeout | Trigger event when input port value does not update within specified time (depuis R2022b) |
simulink.event.InputWriteLost | Trigger event when input port value update overwrites unprocessed data (depuis R2022b) |
Fonctions
Simulink.BlockDiagram.getExecutionOrder | Open Execution Order pane (depuis R2022b) |
simulink.schedule.createSchedule | Create a new schedule using provided schedule and ordering (depuis R2020a) |
Rubriques
Modèles de type Export-Function
- 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.
Modèles de type Rate-Based
- 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.
Ordre d'exécution
- 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.
Partitions avec 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.