Error in Simulink when using arduino uno for motor speed reading
22 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
aakash dewangan
il 19 Ott 2021
Modificato: aakash dewangan
il 23 Ott 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 Commenti
Arun Kumar
il 20 Ott 2021
Modificato: Arun Kumar
il 20 Ott 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
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Arduino Hardware in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!