
Stateflow: How do I create one state output from multiple states?
16 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
stozaki
on 9 Jan 2020
Edited: stozaki
on 9 Jan 2020
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,

0 Comments
See Also
Categories
Find more on Active State Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!