Stateflow.MachineDebug
Stateflow マシンのチャートに対するデバッガーのプロパティ
説明
Stateflow.MachineDebug
オブジェクトは、Stateflow® マシンのチャートに対するデバッガーのプロパティを指定するために使用します。
作成
Stateflow マシンには、それぞれに独自の Stateflow.MachineDebug
オブジェクトがあります。Stateflow.MachineDebug
オブジェクトにアクセスするには、Stateflow.Machine
オブジェクトの Debug
プロパティを使用します。
プロパティ
Stateflow API オブジェクトには、Stateflow エディターで設定した値に対応するプロパティがあります。プロパティにアクセスするかプロパティを変更するには、ドット表記を使用します。複数の API オブジェクトの複数のプロパティにアクセスするか、それらを変更するには、関数 get
および関数 set
をそれぞれ使用します。詳細については、Stateflow オブジェクトのプロパティの変更と関数の呼び出しを参照してください。
Animation
— アニメーションのプロパティ
Stateflow.MachineAnimation
オブジェクト
マシンのチャートに対するアニメーションのプロパティ。次のプロパティをもつ Stateflow.MachineAnimation
オブジェクトとして指定します。
Enabled
— シミュレーション時にマシンのチャートをアニメーション化するかどうか。数値あるいは logical の 1 (true
) または 0 (false
) として指定します。このプロパティを無効にすることは、[デバッグ] タブの [アニメーション速度] ドロップダウン リストで[なし]
を選択することと等価です。Delay
— マシンの各遷移セグメントを強調表示するためにチャートのアニメーションで使用する遅延。スカラーとして指定します。これらの値は [デバッグ] タブの [アニメーション速度] ドロップダウン リストの設定と対応します。遅延の値 アニメーション速度 0.5 低速
0.2 中速
0 高速
-1 超高速
MaintainHighlighting
— シミュレーションの終了後にマシンのアクティブ ステートの強調表示を維持するかどうか。数値あるいは logical の 1 (true
) または 0 (false
) として指定します。
例
アニメーション速度を超高速に設定
Stateflow.Machine
オブジェクト machine
の Stateflow.MachineDebug
オブジェクトと Stateflow.MachineAnimation
オブジェクトにアクセスします。
debug = machine.Debug; animation = debug.Animation;
アニメーションを有効にし、遅延を -1
に設定します。
animation.Enabled = true; animation.Delay = -1;
バージョン履歴
R2006a より前に導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)