Error message 'Error occurred while executing External Mode MEX-file 'ext_comm':'
Afficher commentaires plus anciens
I'm using the example 'Attitude Control for X-Configuration Quadcopter Using External Input' supported from the embedded coder support package for px4.
I executed the model with 'monitor and tune' button, however, I got an error message below.
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 diagram error
Unable to connect to the 'PX4 Host Target' target for 'px4demo_AttitudeControllerWithJoystick_quadrotor'.
Component:Simulink | Category:Model error
I'm using Windows 10 and i5 CPU with 8GB RAM.
I searched my problem in MATLAB Answers, however, most articles are not focused on my situation..
Réponses (3)
chenyue
le 3 Juil 2023
1 vote
是不是傻逼,我2022也跑不了
Ankur Bose
le 28 Oct 2020
0 votes
The issue has been fixed in R2020b. I suggest you upgrade MATLAB to R2020b
Sambhu Prasad
le 26 Fév 2026 à 4:32
Modifié(e) : Sambhu Prasad
le 26 Fév 2026 à 4:33
0 votes
Hi, I am getting the same error while running my ADSB example file. It would be helpful if you can share how you solved it. I am using MATLAB 2024b version.
Catégories
En savoir plus sur ARM Cortex-M Processors dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!