Stateflow: How do I create one state output from multiple states?

Hi,
I have a simulink model with a stateflow diagram where I have a state output ("Create ouput for monitor") that is configured as a child activity. It seems to work great.
Now i want to make a Subchart that also adds states to the top level state output. If i enable "Create output for monitor" it creates a seperate output from the stateflow chart, which is not what i wanted.
Anybody know if its possible for the Subchart to add its states to the top level state output?
Thanks,
Ebbe.

답변 (1개)

stozaki
stozaki 2020년 1월 9일
편집: stozaki 2020년 1월 9일

0 개 추천

Hello Ebbe,
I have one suggestion.
If you enable 'Log Active Leaf State' and 'Log Active State' on the Simulink Toolstrip, you can see the logs in 'Simulation Data inspector'. You can also get Child Activity and Self Activity logs if you needed.
However, in this method you cannot output signals from the chart block.
Regards,

카테고리

도움말 센터File Exchange에서 Stateflow에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2019년 12월 19일

편집:

2020년 1월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by