Error when running programme on external Android
Mostrar comentarios más antiguos
Hello all
I have encountered this error repeatedly, without being able to find a solution at all.
The test app by MATLAB Connector works perfectly fine.
The applications i create are able to run when uploaded using "deploy to hardware"
However, when the play button is pressed, the following error is obtained, as a result, i cannot read my android's sensor data in my MATLAB PC.
""
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
""
Any help is greatly appreciated.
Thank you !
Respuesta aceptada
Más respuestas (2)
Sruthi Yenugula
el 7 de Jun. de 2019
0 votos
Hi,
Make sure your device and pc are connected to same wifi network when running external mode.
1 comentario
Kiat Nern Yeo
el 19 de Jun. de 2019
Kiat Nern Yeo
el 9 de Jun. de 2019
0 votos
2 comentarios
Sruthi Yenugula
el 10 de Jun. de 2019
To see the results in Simulink, you should run the model in external mode, make sure the simulation time is set to inf by default it is 10s. Use display block(not android data display ) of Simulink block is see the data in Simulink.
Kiat Nern Yeo
el 19 de Jun. de 2019
Categorías
Más información sobre Android Devices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!