How to add Stateflow event listeners?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ajay krishna Vasanthakumar
am 9 Dez. 2020
Kommentiert: Ajay krishna Vasanthakumar
am 12 Jul. 2021
Hello all,
For Simulink blocks we add add_exec_event_listener to obtain the run time object of block
In similar way do matlab have provision to add the listener for states and transitions?
Can someone help me out?
Thanks,
V. Ajay Krishna
0 Kommentare
Akzeptierte Antwort
Ntiana Sakioti
am 1 Jul. 2021
Hi Ajay,
If you are interested in identifying when a state has been entered and exited you can use implicit events enter("stateName") and exit("stateName") as listed in this documentation page. You can also identify when a transition is being taken by using "send(TransitionTaken)" as a transition action, where "TransitionTaken" is an event.
Hope this helps.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Complex 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!