Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How can I simulate the rotional speed continuously ?
조회 수: 1 (최근 30일)
이전 댓글 표시
hi, I simulated a DC motor with the help of Simscape and determined the RPM with the help of an encoder. The encoder generates 4 pulses per rev. For decoding I counted the falling edges of Port A with Counter UP and the counter is reset to zero every second (time interval) using Pulse Generation. The number of pulses per second is divided by 4 (4 pulses per rev) and multiplied by * 60 (from sec to minute). How could I simulate the rotional speed (RPM) continuously ? so that the RPM always stays at the same value, as long as the voltage is not changed. Because every second it is reset to zero (see RPM image) if I do not set the counter to zero every second then it will continue to count.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201697/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201698/image.png)
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!