イベント関数
カスタム ルーチンを既定のモデル初期化メソッドと終了メソッドに追加して、動的な起動とシャットダウン動作をモデル化します。シミュレーション時に、イベントで実行されるメソッドを制御します。初期値でブロックを再初期化する関数を作成します。

ブロック
モデル設定
| Parameter Writer ブロックの検証 | Option to enable parameter validation globally or locally (R2023a 以降) |
トピック
- Common Uses of the Initialize Function Block
This example shows how to use the Initialize Function block to perform these common initialization actions.
- 初期化関数、再初期化関数、リセット関数および終了関数の使用
初期化関数呼び出しイベントを使用してブロックの状態を設定します。再初期化関数呼び出しイベントまたはリセット関数呼び出しイベントを使用してブロックの状態をリセットします。終了関数呼び出しイベントを使用してブロックの状態を保存します。
- 関数呼び出しを生成するテスト ハーネスの作成
初期化関数、リセット関数および終了関数呼び出しイベントをスケジュールする。
- Initialize, Reset, and Terminate State of Simulink Block
This example shows how to use the Initialize Function, Reset Function, and Terminate Function blocks to respond to events in a Simulink model.
- パラメーター値の初期化とリセット
Parameter Writer ブロックを使用して、モデルのシミュレーション中にブロック パラメーターの値を変更する。
- Reinitialize Function ブロックの操作
この例では、Reinitialize Function ブロックを使用して、サブシステムが受け取ったすべての関数呼び出しイベント用の Discrete-Time Integrator ブロックの初期条件をリセットする方法を示します。
- 初期化関数、再初期化関数、リセット関数および終了関数の制限
ブロック、機能、モデル化パターンが Initialize Function ブロック、Reinitialize Function ブロック、Reset Function ブロック、Terminate Function ブロックでサポートされるかどうかを調べる。
- Prepare Sensor and Controller Models in a Distributed Monitoring System for Code Generation
Prepare models to generate code for deployment on target hardware platforms.
- Parameter Writer ブロックの一般的な使用法
この例では、Parameter Writer ブロックを使用してブロック パラメーターおよび変数の値を変更する方法を示します。
- Use Parameter Writer Block to Schedule PID Controller Gain
Use Parameter Writer blocks to schedule PID controller gain coefficients for a nonlinear system.
- Use Connectors Tool to Visualize Relation Between Blocks
Use Connectors tool to visualize relation between Simulink® functions and their function caller blocks, reader and writer blocks or blocks which execute based on events.
- Access Data Store at Higher Level in Model Hierarchy
Access data store defined at a higher-level in the model hierarchy.