
Stateflow: How do I create one state output from multiple states?
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
stozaki
le 9 Jan 2020
Modifié(e) : stozaki
le 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 commentaires
Voir également
Catégories
En savoir plus sur Active State Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!