このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
時間ベースのスケジューリング
時間ベースのスケジューリングに依存し、コードを生成する対象のアルゴリズムのモデルを設計します。連続ブロックと離散ブロックの使用を評価します。1 つ以上のサンプル レートで実行されるモデルに固定ステップ ソルバーを使用します。シングルタスク実行モードとマルチタスク実行モードのいずれかを選択します。モデル内のサンプル レートの遷移を特定して処理します。
トピック
- 時間ベースのスケジューリングとコード生成
コード生成を目的としたモデルを設計する場合は、連続ブロックと離散ブロックの使用、サンプル時間、マルチレート モデルのレート変換、離散化、およびシングルタスク モードとマルチタスク モードの選択を考慮する。
- Periodic and Aperiodic Function Interfaces
Generate callable entry-point functions for the algorithm represented by a top model.
- Data Transfer Representation and Processing
Learn about data transfer basics.
- Configure Time-Based Scheduling
Configure the solver type, solver, fixed-step size, periodic sample time constraints, and solver diagnostics for code generation.
- モデルから生成されたコードの実行
ラピッドプロトタイピング用および組み込みシステムのランタイム環境用のシングルタスクおよびマルチタスク モデルから生成されたコードを実行します。
- Tasking Modes and Execution Order
Example that shows task execution order for blocks in a model when configured for single-tasking versus multitasking execution.
- Optimize Multirate Multitasking Execution for RTOS Target Environments
Improve performance of generated code by using real-time operating system (RTOS) task management mechanisms to eliminate redundant scheduling calls for multirate, multitasking models.