How to add Stateflow event listeners?

9 ビュー (過去 30 日間)
Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar 2020 年 12 月 9 日
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

採用された回答

Ntiana Sakioti
Ntiana Sakioti 2021 年 7 月 1 日
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.
  1 件のコメント
Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar 2021 年 7 月 12 日
Thanks Ntiana :). This will be helpful for sure

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComplex Logic についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by