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

조회 수: 4 (최근 30일)
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?

카테고리

Help CenterFile Exchange에서 Run on Target Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by