Up and down counter
조회 수: 21 (최근 30일)
이전 댓글 표시
Hi All:
I am using Simulink, In which I need to count Up and Down depending upon the input values.
Can anyone help me out that is their any way to internallay switch the counter from counting Up to Down or from Down to Up. Or is heir any way to provide the Initial value to the counter from out side the counter block.
If not possible then what should be the ulternate to such sort of problem.
답변 (2개)
C.J. Harris
2012년 7월 19일
I would suggest using either an integrator block with external initial conditions and a switched input, or design a Stateflow block to do this by having a 'CountUp' and a 'CountDown' state.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!