필터 지우기
필터 지우기

Counting up to the reference value

조회 수: 3 (최근 30일)
Emir Oguz
Emir Oguz 2020년 5월 7일
답변: Navya Seelam 2020년 5월 12일
Hi,
I want to design a up&down counter which goes to reference value with unit delay and stays there.
For example let ref = 10, after counting to 10 from zero, if I change ref = 5 it should count to 5 from 10 and stays there.
Thanks in advance.

답변 (1개)

Navya Seelam
Navya Seelam 2020년 5월 12일
You can use simulink to design this counter. Use a switch block to toggle between up counting and down counting. In order to give reference to counter by storing the reference value in 1-D look up table and increment the index to look-up table after the counter has reached the first reference value and so on.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by