Error in Simulink when using arduino uno for motor speed reading
25 次查看(过去 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!