Filter löschen
Filter löschen

Check if input status has changed over time period x

1 Ansicht (letzte 30 Tage)
Matt
Matt am 1 Jun. 2016
Bearbeitet: Pavel Dey am 7 Jun. 2016
I have a boolean input that I need to monitor status over time period X. If status has changed I would trigger bit.
  1 Kommentar
Geoff Hayes
Geoff Hayes am 2 Jun. 2016
Matt - please provide some context. Where is this input coming from? What bit would you trigger?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Pavel Dey
Pavel Dey am 7 Jun. 2016
Bearbeitet: Pavel Dey am 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.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by