Not sensible to short time FALSE

조회 수: 4 (최근 30일)
cyberdyne
cyberdyne 2011년 6월 16일
Hi,
I've a logic output that for a few seconds go to zero. How can I make it to be not sensible to these intervals if they are shorter than an specific constant by simulink?
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2011년 6월 16일
Could you please clarify this question? Are you saying that you have this logical signal is connected to blocks, and that you don't want these blocks to be sensitive to some variations in your signal?

댓글을 달려면 로그인하십시오.

답변 (1개)

Doug Eastman
Doug Eastman 2011년 6월 17일
It sounds like you are trying to create debounce logic where you only want to go low if the input is held low for a certain period of time.
The easiest way to implement this is in Stateflow, see Debouncer Model.
Another approach might be to add a delay to the input and sum the current input and the delayed input and put the sum through a relay block. That way it will only go high when both are high and only go low when both are low.

카테고리

Help CenterFile Exchange에서 Signals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by