This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Cannot Connect to the EV3 Brick

When you try to connect from the MATLAB® software to the EV3 hardware, the Command Window displays an error. For example:

myev3 = legoev3
Error using legoev3 (line 285)
Failed to connect to EV3 through USB. Please check your USB
connection.
  1. Verify that the EV3 power is on. If not, start the EV3 brick by pushing the power button.

  2. If the EV3 power was off, any legoev3 and sensor objects in the MATLAB Workspace are no longer valid. Clear those objects from the MATLAB Workspace. For example:

    clear all;
  3. Check that the USB, wireless network, or Bluetooth® cables and hardware are set up as described in Connect the Host Computer to an EV3 Brick.

  4. Use matlabshared.supportpkg.getInstalled to verify that you installed the support package.

    >> matlabshared.supportpkg.getInstalled
    
           Name         Version  Base Product 
    ------------------- ------- --------------
    LEGO MINDSTORMS EV3 14.2.0  MATLAB
  5. Use matlabshared.supportpkg.checkForUpdate to check for updates to the support package.

    matlabshared.supportpkg.checkForUpdate
    
    No support packages need updates.
  6. If you did not install the support package, or updates are available, use supportPackageInstaller to install or update the support package.

    supportPackageInstaller;