Check if input status has changed over time period x

1 回表示 (過去 30 日間)
Matt
Matt 2016 年 6 月 1 日
編集済み: Pavel Dey 2016 年 6 月 7 日
I have a boolean input that I need to monitor status over time period X. If status has changed I would trigger bit.
  1 件のコメント
Geoff Hayes
Geoff Hayes 2016 年 6 月 2 日
Matt - please provide some context. Where is this input coming from? What bit would you trigger?

サインインしてコメントする。

回答 (1 件)

Pavel Dey
Pavel Dey 2016 年 6 月 7 日
編集済み: Pavel Dey 2016 年 6 月 7 日
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.

カテゴリ

Help Center および File ExchangeSources についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by