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 CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by