Simulink Initialization and Scheduling

版本 1.1.0.0 (30.6 KB) 作者: Giampiero Campa
Examples showing how to schedule the sequential execution of different subsystems
487.0 次下载
更新时间 2023/10/13

pure-simulink-initialization-and-scheduling

Examples showing how to schedule the sequential execution of different subsystems

View pure-simulink-initialization-and-scheduling on File Exchange

Open in MATLAB Online

SIMULINK® INITIALIZATION AND SEQUENTIAL BLOCK EXECUTION EXAMPLES:

A question often asked by advanced simulink users is how to execute some part of the model only once at the beginning of the simulation, and execute another part of the model only after the former is executed.

This is often motivated, for example, by the need to execute some diver blocks that perform some initialization function on the hardware, before executing other blocks that perform the main intended task.

A related question is how to make sure that some blocks are executed only sequentially, that is one after the other.

This file contains simple examples showing how to easily perform both tasks in a pure-simulink setting.

Note that some hints and examples on how to approach these problems are also given in the documentation (see below).

CONTENTS:

readme.md This file.

sim_init_example.slx Initialization example sim_seq_example.slx Sequential Exacution example sim_initseq_example.slx Combined Initialization and Sequential Execution example

license.txt License file. security.md Security statement.

OTHER APPROACHES DESCRIBED IN THE DOCUMENTATION:

This is a general starting point:

http://www.mathworks.com/help/stateflow/ug/scheduling-execution-of-simulink-subsystems.html

this is an alternating executing subsystem example:

http://www.mathworks.com/help/simulink/ug/triggered-and-enabled-subsystems.html#f4-84472

while this is a stateflow-based solution:

http://www.mathworks.com/help/stateflow/ug/schedule-multiple-subsystems-in-a-single-step.html

and this is a more general explanation of how to display and control the execution order, still based on stateflow:

http://www.mathworks.com/help/simulink/ug/controlling-and-displaying-the-sorted-order.html

引用格式

Giampiero Campa (2024). Simulink Initialization and Scheduling (https://github.com/giampy1969/pure-simulink-initialization-and-scheduling/releases/tag/v1.1.0.0), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Simulink 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

See release notes for this release on GitHub: https://github.com/giampy1969/pure-simulink-initialization-and-scheduling/releases/tag/v1.1.0.0

1.0.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库