Enable a subsystem from Simulink stateflow ?
25 ビュー (過去 30 日間)
古いコメントを表示
Hello ,
I am a newbie to Simulink . I am trying to run a activate/enable a subsystem when certain conditions are met in Simulink Stateflow . I know I have to add enable signal to the subsystem I intend to activate and this would be input to the subsystem I am trying to activate.
But my question is how do I set this enable signal to true in my state flow . Since its a input variable I cannot assign its value in another subsystem or is there a better way to do it .
I might be completely off since I am barely getting statrted . Any help appreciated .
Thanks
2 件のコメント
Fangjun Jiang
2025 年 1 月 22 日 19:26
A stateflow chart or state can set an output value to true to enable the subsystem.
回答 (1 件)
Debadipto
2025 年 1 月 24 日 4:42
編集済み: Debadipto
2025 年 1 月 24 日 4:46
You can use an "Enabled Subsytem" to trigger it's activation state based on a Stateflow chart. Please refer to the model attached for illustration.The chart data "enabled" has been set to "Output Data" (see Symbols pane) to direct it to the subsystem.
For information on "Enabled Subsystems", refer to the following doc:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Schedule Model Components についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!