How to compare a value over time in Simulink
3 次查看(过去 30 天)
显示 更早的评论
I am attempting to take a value (in my instance a boolean) and see if it is equal to a set value (in my case True) for a given amount of time. Is there a function in Simulink that would help me achieve this?
0 个评论
采纳的回答
stozaki
2021-8-6
Hi Trevor,
The processing you want to perform is not in the Simulink standard block. So I modeled the function you want to detect.
It is created with Simulink standard blocks only. I created this model with R2021a
You can use this model by setting start_time and stop_time to start and end times.
3 个评论
stozaki
2021-8-6
I have attached the one I created with R2018b.
Please check out this model.
stozaki
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!