Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

调度模型组件

创建导出函数、基于速率的模型和分区,以便为代码生成调度模型

调度模型组件进行仿真或与外部调度器集成需要将算法存在于原子 SubsystemModel 模块中。将执行速率指定为周期(调度子系统)或非周期(函数调用子系统)。

分区是作为原子任务独立执行的模型组件。在多任务模型中,分区是从模型组件创建的。使用分区,您可以分离模型中可在调度编辑器工具中显式控制的各部分。

调度编辑器是一个调度工具,它表示模型中称为分区的组件、它们之间的数据连接以及这些分区的顺序。调度编辑器只能用于现有组件,如原子子系统、导出函数和模型模块。调度编辑器是一个交互式工具,通过它可以轻松查看和编辑模型组件的调度情况。

模块

全部展开

Function-Call Subsystem由外部函数调用输入控制执行的子系统
Function-Call Generator提供函数调用事件来控制子系统或模型的执行
Function-Call Split提供联接点以用于拆分函数调用信号线
Function-Call Feedback LatchBreak feedback loop involving data signals between function-call blocks
Trigger向子系统或模型添加触发器或函数端口
Subsystem对各模块进行分组以创建模型层次结构
Inport为子系统或外部输入创建输入端口

工具

调度编辑器View and edit the schedule of model components (partitions)

对象

simulink.schedule.OrderedScheduleCreates an OrderedSchedule object containing priority order of the partitions of a model (自 R2020a 起)
simulink.event.InputWriteTrigger event when input port value updates (自 R2022b 起)
simulink.event.InputWriteTimeoutTrigger event when input port value does not update within specified time (自 R2022b 起)
simulink.event.InputWriteLostTrigger event when input port value update overwrites unprocessed data (自 R2022b 起)

函数

Simulink.BlockDiagram.getExecutionOrderOpen Execution Order pane (自 R2022b 起)
simulink.schedule.createScheduleCreate a new schedule using provided schedule and ordering (自 R2020a 起)

主题

导出函数模型

基于速率的模型

执行顺序

使用调度编辑器进行分区操作