Simulink error while running controller on hardware using arduino

50 ビュー (過去 30 日間)
aakash dewangan
aakash dewangan 2022 年 11 月 14 日
コメント済み: Harshit Gupta 2022 年 11 月 21 日
Hi,
I am controlling the speed of a motor (high encoder resolution) using Arduino simulink connection.
I am getting the following error at high speeds
  • 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 server connected
Please help me to solve this issue.

採用された回答

Harshit Gupta
Harshit Gupta 2022 年 11 月 17 日
Hi Aakash,
As per my understanding, you are getting the following errors while using Arduino with Simulink:
  • 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 server connected
One possible reason for these errors in Arduino is configuring the Fixed step size too low. We generally use this configuration as "auto". Thus, changing this to "auto" or increasing the step size can resolve the error.
Please refer to the following documentation link for more information about step size: https://www.mathworks.com/help/simulink/gui/fixed-step-size-fundamental-sample-time.html
  1 件のコメント
Harshit Gupta
Harshit Gupta 2022 年 11 月 21 日
Additional Input- If the above error is not resolved by the solution provided, you can reduce the Baud rate in the external mode panel to see if the error gets resolved.
You can refer to the following link for more information on how to set the Baud rate for the Arduino Board using MATLAB: https://www.mathworks.com/matlabcentral/answers/443100-how-to-set-baud-rate-in-the-matlab-support-package-for-arduino

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by