Initialization Script

An initialization script provides a means for you to define OML variables and functions for a simulation.

On top of the main diagram context, the software applies an initialization script, which is yet another OML script that is executed at the beginning of the simulation process. The main purpose of this script is to define the variables or functions that are required throughout the model during a simulation.

初期化変数と関数の定義

シミュレーションで利用可能なOML変数と関数(シミュレーションの最終時間など)でスクリプトを作成します。

  1. リボンからモデルの初期化とプロパティツールを選択します。


    モデルダイアログが開きます。
  2. 初期化タブを選択します。
  3. OMLエディターで、モデルの初期化情報を入力します。変数定義や関数定義/実行など、任意の有効なOMLコマンドを入力することができます。


    または、既存の初期化ファイルを読み込む場合は、を選択して、読み込み対象の.oml スクリプトを指定します。