How to compare a value over time in Simulink
2 views (last 30 days)
Show older comments
Trevor Youngman on 5 Aug 2021
Commented: Trevor Youngman on 6 Aug 2021
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?
stozaki on 6 Aug 2021
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.
More Answers (0)
Find more on Test Model Components in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!