Clear Filters
Clear Filters

Can't connect to target application in Simulink - Lego Mindstorms EV3

6 views (last 30 days)
Hello,
the question is quite simple. I tried to control my LEGO ev3 block from MATLAB script and it works. However trying to run ev3 from simulink is not succesful. The error message is this:
External Mode Open Protocol Connect command failed
Caused by:
  • Could not connect to target application: XCP TCP/IP error: Connect failed
Does anybody know how could I succesfully connect simulink to ev3 ?
Thank you.

Answers (1)

Asim
Asim on 29 Jan 2024
Hello Ondej,
I understand that you are encountering 'External Mode Open Protocol Connect command failed' error while using Lego Mindstroms EV3 with MATLAB R2023a.
This error has been extensively discussed in the community, and there have been numerous proposed workarounds. I recommend exploring the following discussions where you can find valuable insights and potential solutions.
I hope this helps.
Best Regards,
Asim Asrar

Categories

Find more on LEGO MINDSTORMS EV3 Hardware in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!