Adding a delay to input reading in Simulink
조회 수: 5 (최근 30일)
이전 댓글 표시
I am trying to delay the input of an analog reading so that it only reads every 10 seconds, while the rest of the program still runs. I tried the variable time delay but that didn't give me the result I wanted (although it is possible I am using it incorrectly). Any ideas? I don't want to delay the entire model, just this one input.
댓글 수: 0
답변 (1개)
Brian Hannan
2017년 8월 17일
You can use a Sample and Hold block for this. Or you can create a trigger signal with a 10-sec. period to drive a simple enabled subsystem that just passes its input signal value.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!