Error in Simulink when using arduino uno for motor speed reading
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
aakash dewangan
am 19 Okt. 2021
Bearbeitet: aakash dewangan
am 23 Okt. 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 Kommentare
Arun Kumar
am 20 Okt. 2021
Bearbeitet: Arun Kumar
am 20 Okt. 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
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!