Check if input status has changed over time period x

2 views (last 30 days)
I have a boolean input that I need to monitor status over time period X. If status has changed I would trigger bit.
  1 Comment
Geoff Hayes
Geoff Hayes on 2 Jun 2016
Matt - please provide some context. Where is this input coming from? What bit would you trigger?

Sign in to comment.

Answers (1)

Pavel Dey
Pavel Dey on 7 Jun 2016
Edited: Pavel Dey on 7 Jun 2016
Not very sure about your use case, but seems like the attached demo model could be helpful. Use the 'Detect Change' block. As the input signal, I have given a boolean random number which I have created in Workspace.

Categories

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