Error in Simulink when using arduino uno for motor speed reading
22 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
aakash dewangan
le 19 Oct 2021
Modifié(e) : aakash dewangan
le 23 Oct 2021
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 commentaires
Arun Kumar
le 20 Oct 2021
Modifié(e) : Arun Kumar
le 20 Oct 2021
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
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Arduino Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!