Serial communication failed in host-target communication

HI everyone,
I have set a motor control environment to learning motor control
  • LAUNCHXL-F28379D
  • BOOSTXL-DRV8305EVM
  • 24V pmsm with hall sensor
and I ran "mcb_param_est_f28379D_DRV8305.slx" and "mcb_param_est_host_read.slx"
Unfortunately, when I load the model onto the target and run the host model, I get a serial connection error message.
The offset calibration model and other models work perfectly, so I assume that all settings (COM port et cetera) are correct.
Error report:
An error occurred while running the simulation and the simulation was terminated
Caused by:
Serial communication failed.
Error in 'mcb_param_est_host_read/Algorithm/SignalConditioning/ErrorConditions' (line 26)
(error(message('mcb:blocks:SerialComFailure')));
Thank you fpr your heip! Kind regards!

回答 (3 件)

Raj
Raj 2024 年 3 月 19 日

0 投票

I understand that the error prompts up when you load the model onto the target hardware and run the model.
In the mcb_param_est_host_read.slx file, update the COM port in the following 3 blocks, Host Serial Setup, Host Serial Receive and the Host Serial Transmit block.
Additionally you can also refer to a similar user case posted in the MATLAB Answer community-
I hope this solves the issue and you are able to proceed further!
Nanoeffekt
Nanoeffekt 2024 年 3 月 25 日

0 投票

Hi,
I have set the COM ports correctly for the three blocks! This is not the cause of the problem. I have also read all the similar answers on this topic, but unfortunately these could not solve the problem either...any other ideas?
Thank you!

1 件のコメント

Raj
Raj 2024 年 3 月 27 日
Hi, can you let me know in which MATLAB version are you facing this issue?

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

Ananth kumar
Ananth kumar 2024 年 3 月 28 日

0 投票

If COM port is locked by another application, you may likely to see the message. Is this issue still prevails?

カテゴリ

ヘルプ センター および File ExchangeMotor Control Blockset についてさらに検索

質問済み:

2024 年 3 月 11 日

回答済み:

2024 年 3 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by