フィルターのクリア

Error occurred while executing External Mode MEX-file 'ext_comm

12 ビュー (過去 30 日間)
Noor Zeid
Noor Zeid 2017 年 3 月 19 日
回答済み: Venkatesh Chilapur 2018 年 11 月 14 日
Hi
I keep getting this error while running my simulink model on external mode at my arduino !
the error at different times which mean that it may appear at the begening of the run or at any time or it will not start at all.
I tried different arduino, different laptop, different wires ! nothing removed the error
Error occurred while executing External Mode MEX-file 'ext_comm':
ExtTargetPktPending() call failed while checking for target pkt
Component:Simulink | Category:Block diagramerror
Error occurred while executing External Mode MEX-file 'ext_comm':
ExtSetTargetPkt() call failed on CLOSE
  2 件のコメント
ummul ghafir
ummul ghafir 2017 年 5 月 14 日
same as me. did u find the solution @Noor Zeid ?
Olaf
Olaf 2018 年 9 月 25 日
Error as you. Did you find the solution for this error. Thanks.

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

回答 (2 件)

Venkatesh Chilapur
Venkatesh Chilapur 2017 年 10 月 17 日
Hi,
Please update on the following:
1. Host operation system? i.e OS running on laptop... 2. Version of MATLAB, like 2017a..? 3. Version for the Arduino Board? 4. Could you also attach a snap of the model? 5. Are you able to run normal mode(code download)? 6. Also please attach the complete log of the error.
Regards, Venkatesh C
  1 件のコメント
Gonzalo Cabanas
Gonzalo Cabanas 2018 年 11 月 13 日
編集済み: Gonzalo Cabanas 2018 年 11 月 13 日
Hi Venkatesh,
I have the same problem, so I will update to you the information:
  1. Linux Ubuntu 2018
  2. Matlab 2018b
  3. Arduino Mega 2560 16AU(Chinese version)
  4. I'm able to run in Normal, but without using a Scope (Only Analog Input-DataConverter-Gain-PWM OUTPUT)
ERROR__:
### Successful completion of build procedure for model: untitled
Build process completed successfully
action: EXT_CONNECT
Component:Simulink | Category:Model
Error occurred while executing External Mode MEX-file 'ext_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.
Component:Simulink | Category:Block diagram error
Unable to connect to the 'Arduino Mega 2560' target for 'untitled'.
Thank you vey much!

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


Venkatesh Chilapur
Venkatesh Chilapur 2018 年 11 月 14 日

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by