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.
Verify that the EV3 power is on. If not, start the EV3 brick by pushing the power button.
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;
Check that the USB, wireless network, or the Bluetooth® cables and hardware are set up as described in Connect the Host Computer to an EV3 Brick.
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
Use
matlabshared.supportpkg.checkForUpdate
to check for updates to the support package.matlabshared.supportpkg.checkForUpdate
No support packages need updates.
If you did not install the support package, or updates are available, use
supportPackageInstaller
to install or update the support package.supportPackageInstaller;