LAUNCHXL-F28379D: MATLAB Simulink external mode error

17 vues (au cours des 30 derniers jours)
mmax177
mmax177 le 26 Jan 2017
I can build my simulink model normally but I can't use external mode.
% code
Build process completed successfully
Verbose mode is enabled for External mode. You can disable Verbose in Model Configuration Parameters > Hardware Implementation > Target Hardware Resources > External mode.
Attempting to establish connection with hostname '127.0.0.1' through port 17725.
action: EXT_CONNECT
Component:Simulink | Category:Model
Error occurred while executing External Mode MEX-file 'ext_comm':
Failed to connect to the target. Possible reasons for the failure:
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.
Caused by:
An error occurred attempting to open an rtIOStream. More detail may be reported in the MATLAB command window
Component:Simulink | Category:Block diagramerror
Unable to connect to the 'TI Delfino F2837xD' target for 'blink'.
Thank for your help.
Pavares Kiatsuarpanon
  1 commentaire
mohammad farahani
mohammad farahani le 22 Juin 2018
Hello I use launchpad-f28069m for control related works and generate 4 PWM(s) with that. The igbt(s) receive pulses well and are reinforced while when power circuit is disconnected, but when connecting power circuit, the connection 28069 and pc is regularly connected and disconnected. Also, when using external mode, I receive an error which I think to be related to frequent disconnection of 28069 and pc"
Error occurred while executing External Mode MEX-file 'ext_comm': ExtSetTargetPkt() call failed on CLOSE. Ensure target is still running"
I will be really thankful if you help me by giving proper solution and suggestions. Regards

Connectez-vous pour commenter.

Réponses (2)

Antonin
Antonin le 1 Mar 2017
Hi mmax177,
We introduced fast External Mode in R2016b which provides better serial streaming capabilities while running External Mode on TI C2000 devices.
We recently fixed one case where you would face the problem that you describe and we uploaded it in a recent release of the support package. Make sure to update your support package to the latest version by following the download link on this page: Embedded Coder Support Package for Texas Instruments C2000 Processors
Support Packages versions 16.2.5 and above fix this problem.
The only other known possible case where you would face this problem is when the COM port is used by another application (like a hyper terminal) while you run External mode. We are working on a better error mechanism for this case, in the meantime, make sure that the COM port is free to use by MATLAB prior to launching External mode simulations.
I hope it helps,
Thanks,
Antonin.

Rahulkumar Lukhi
Rahulkumar Lukhi le 30 Nov 2017
Hello,
Did anyone find the solution? I am using F28069M launchpad and trying to simulate in external mode. Can anyone please share how to fix the below problem?
  • * * * Attempting to establish connection with hostname '127.0.0.1' through port 17725.Error occurred while executing External Mode MEX-file 'ext_comm':Failed to connect to the target. Possible reasons for the failure: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.
Caused by: An error occurred attempting to open an rtIOStream. More detail may be reported in the MATLAB command window Component:Simulink | Category:Block diagramerror Unable to connect to the 'TI Piccolo F2806x' target for 'untitled'.******

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by