基于时间的调度
求解器、采样率和转换、任务模式和实时执行
为依赖基于时间的调度的算法设计模型,并为其生成代码。评估连续和离散模块的使用情况。为以一个或多个采样率运行的模型使用定步长求解器。在单任务和多任务执行模式之间选择。识别和处理模型中的采样率转换。
主题
- 基于时间的调度和代码生成
在设计用于代码生成的模型时,要考虑连续和离散模块的使用、采样时间、多速率模型的速率转换、离散化,以及在单任务模式和多任务模式之间进行选择。
- Periodic and Aperiodic Function Interfaces
Generate callable entry-point functions for the algorithm represented by a top model.
- Configure Time-Based Scheduling
Configure the solver type, solver, fixed-step size, periodic sample time constraints, and solver diagnostics for code generation.
- Execution of Code Generated from a Model
Execute code generated from single-tasking and multitasking models for rapid-prototyping and embedded system run-time environments.
- Tasking Modes and Execution Order
Example that shows task execution order for blocks in a model when configured for single-tasking versus multitasking execution.