Counter that starts on demand
이전 댓글 표시
Hi,
How can I build a counter that starts to count from 0 only after a specific start signal and stops after an other signal (by simulink) ?
답변 (1개)
Kaustubha Govind
2011년 6월 16일
0 개 추천
Perhaps you could use the Counter Free-Running block inside an Enabled Subsystem and construct the enable signals based on your other two signals?
댓글 수: 2
cyberdyne
2011년 6월 16일
Kaustubha Govind
2011년 6월 16일
Are you saying that the subsystem starts executing at the beginning of simulation? No - it depends on whenever the enable signals goes active. So you can construct your enable signal such that the counter only executes for the duration that you want it to.
카테고리
도움말 센터 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!