I am having problem in external connection​('ext_seri​al_win32_c​omm') error. How can I fix it?

1 回表示 (過去 30 日間)
mahmut keser
mahmut keser 2016 年 3 月 13 日
コメント済み: Ahmet yüksel 2018 年 2 月 4 日
I am using TI c2000 microcontroller. I would like to read the encoder value from the motor. However, even thoguh its pyhsical connections are correct it gives the following error during run process in Simulink:
Error occurred while executing External Mode MEX-file 'ext_serial_win32_comm': Failed to connect to the target. A time-out occurred while waiting for the connection response from the target. Possible reasons for the time-out: a) The target is not switched on. b) The target is not connected to your host machine. c) The application for the model is not running on the target. You might have clicked the Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button, which downloads and runs your application on the target.
  2 件のコメント
Martin L
Martin L 2017 年 4 月 23 日
Did you find a solution to your problem? I can't find a proper answer from google and have no idea what to try next.
ummul ghafir
ummul ghafir 2017 年 5 月 14 日
I am also having problem in external connection('ext_serial_win32_comm') error. i am using arduino mega ADK. i checked the port number as in matlab. and i set it same as the port number of arduino mega adk in device manager.but still matlab cannot detect the target hardware. btw, im using R2015b. How can I fix it?

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

回答 (2 件)

Venkatachala Sarma
Venkatachala Sarma 2016 年 5 月 6 日
編集済み: Venkatachala Sarma 2016 年 5 月 6 日
Hi Mahmut,
Two things to make sure.
1. Com Port in the External Mode tab in the Hardware Implementation pane of Configuration Parameters. This should match with the device Com port shown by the Device Manager.
2. SCI_A is usually the serial port of the target which transfers data during External mode. So the Port Settings shown by Device Manager should be the same as the ones available in the SCI_A tab of Hardware Implementation pane in Configuration Parameters.
Hope this helps

ummul ghafir
ummul ghafir 2017 年 5 月 14 日
I am also having problem in external connection('ext_serial_win32_comm') error. i am using arduino mega ADK. i checked the port number as in matlab. and i set it same as the port number of arduino mega adk in device manager.but still matlab cannot detect the target hardware. btw, im using R2015b. How can I fix it?
  2 件のコメント
krishna vankayala
krishna vankayala 2017 年 7 月 26 日
did u find the solution?
Ahmet yüksel
Ahmet yüksel 2018 年 2 月 4 日
did you find solution for this error

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

カテゴリ

Help Center および File ExchangeRun on Target Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by