The same event(DOWN)is used in multiple lower-level(child)charts within a parent chart. When the DOWN event is triggered in any of these child, it propagates to parent chart.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
In MATLAB Stateflow, I’m using the same event (DOWN) in multiple lower-level (child) charts within a parent chart. When the DOWN event is triggered in any of these child charts, it also propagates to the parent chart, unintentionally triggering logic there.
How can I prevent the DOWN event triggered in a child chart from being received or acted upon by the parent chart? I want to reuse the same event name (DOWN) across multiple child charts without causing conflict or event propagation to the parent.
0 Kommentare
Antworten (1)
Teresa Hubscher-Younger
am 4 Aug. 2025
I don't believe you can use the same name this way without using atomic subcharts and parameter mapping (Map Variables for Atomic Subcharts and Boxes - MATLAB & Simulink), and I believe atomic subcharts would not be available for MATLAB Stateflow, since it requires using Simulink libraries. Unfortunately I think this will require using a different name for the parameters in the subchart if this variable is not supposed to be shared/affecting the parent.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Decision Logic finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!