How to count events in sliding time window

2 views (last 30 days)
I want to set the flag if 3 events occurs within 30 seconds(sliding window). How to implement it in simulink? Eg. 1st event occurs timer should start and if 3rd event occurs within 30 seconds then raise the flag. If the time span is less than 30 seconds between 2nd & 4th then also raise the flag.

Answers (0)

Categories

Find more on Simulink 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!