Error in Simulink when using arduino uno for motor speed reading
조회 수: 22 (최근 30일)
이전 댓글 표시
Hello,
I am reading the speed of a maxon EC motor (brush less) on simulink using arduino uno. The encoder is mounted on (connected to) my motor. The count per turn for the motor encoder is 8600 (I observed). I am using Simulink of MATLAB R2021b for this purpose. I am using Encoder block for speed reading (count reading). I am using "monitor and tune" to run my motor.
When I am running my motor at very slow speed (less that 50 RPM), then there is no error. But, when I increase the speed of my motor, then simulink shows the following error:
Component:Simulink | Category:Model warning
External Mode Open Protocol CheckData command failed
Caused by:
- Multiple errors detected.
- XCP internal error: timeout expired, in response to XCP SYNCH command
- Error detected while trying to disconnect Simulink from target application.
- XCP error: XCP internal error: No slave connected
Please help me to solve this problem. I Really need some help!
댓글 수: 2
Arun Kumar
2021년 10월 20일
편집: Arun Kumar
2021년 10월 20일
Hi Aakash,
Have you tried deploying the model and seen behaviour with high motor speeds?
You could use serial transmit block to send the encoder values for testing.
For quick response, please contact MathWorks Technical support.
Thanks,
Arun
채택된 답변
추가 답변 (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!