How to make stateflow sample simevents' entity's attributes when the function call happens?
显示 更早的评论
Hi,all!
I have a problem when interacting stateflow with simevents.
For example, I use simevents to generate an entity every 1s. This entity has its attribute which works as an input data to stateflow. The entity also evoke the stateflow chart at the time it is generated. What I find out is that the function call is captured without any problem, but the input-type data in the stateflow remains the initial value, which is different from the entity's attribute. It will only become the same as the attribute when the next event happens. Anyone knows how to solve this problem?
Looking forwards to your answer and thank you in advance!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Discrete-Event Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!