Subsystem to monitor the change of three inputs
2 次查看(过去 30 天)
显示 更早的评论
I am trying to design a subsystem to monitor the change of three inputs. If one, two or all of the inputs changes values I want the simulationto pause. If none change I want the simulation to continue and so on. I was thinking of using a triggered subsystem but I am not sure how to think f it logically?
0 个评论
采纳的回答
Ganesh Regoti
2020-2-5
Hi,
You can check whether the value has changed from the previous time-step using delay blocks.
Then you can add logical operations to check you conditions and to pause the simulation you can use assertion blocks. You can refer to
Hope this helps!
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Schedule Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!