Enable a subsystem from Simulink stateflow ?

조회 수: 8 (최근 30일)
rikro
rikro 2025년 1월 22일
편집: Debadipto 2025년 1월 24일
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
Fangjun Jiang 2025년 1월 22일
A stateflow chart or state can set an output value to true to enable the subsystem.
rikro
rikro 2025년 1월 22일
Thanks ! And how do I link this variable to enable signal ? I don't think mentioning that variable to enable signal is linking the same variable

댓글을 달려면 로그인하십시오.

답변 (1개)

Debadipto
Debadipto 2025년 1월 24일
편집: Debadipto 2025년 1월 24일
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:

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by