フィルターのクリア

Trouble connecting LEGOEV3 with matlab using bluetooth

3 ビュー (過去 30 日間)
Paula Insuasty
Paula Insuasty 2022 年 4 月 7 日
回答済み: Narvik 2023 年 12 月 29 日
I am trying connect my LEGOEV3 with matlab using the support package (https://www.mathworks.com/hardware-support/lego-mindstorms-ev3-matlab.html), but when I try to define my brick I just received error messages or the program just still running and never stop.
I checked with bluetoothlist, serialportlist and Control panel/Device manager, so confirmed the connection and the ports in which the brick should be connected (I also confirmed the Add on of Instrument tool box control). Also I tried with the app of LEGO Mindstorm and it is good connected with the robot(it received and make the movement that I programmed on the brick) it was connected using bluetooth.
I get error messages as:
CODE NUM 1: myev3 = legoev3('bt', brickID)
Unable to resolve the name 'hwconnectinstaller.internal.isProductInstalled'.
Error in legoev3 (line 145)
if ~hwconnectinstaller.internal.isProductInstalled('Instrument Control Toolbox')
CODE NUM 2: myev3 = legoev3('bluetooth','COM3') or myev3 = legoev3('Bluetooth','COM3') or myev3 = legoev3('bluetooth','COM4') or myev3 = legoev3('Bluetooth','COM4')
2. Failed to connect to EV3 through Bluetooth. Please check your Bluetooth connection. or It never stop running with the other COM port.
And when I try to connect it using USB it says that the device is not recognized by my computer (I tried with 2 different computers with different windows versions). I am using Windows 10 and Matlab version R2022a but also tried with 2015b and 2019b.

回答 (1 件)

Narvik
Narvik 2023 年 12 月 29 日
Hi,
As per my understanding, you are facing issues while trying to connect LEGOEV3 with MATLAB using Bluetooth.
Please refer to the following MATLAB answer that contains the errors, their corresponding reasons and workarounds to connect to legoev3:
Hope this helps!

カテゴリ

Help Center および File ExchangeMATLAB Support Package for LEGO MINDSTORMS EV3 Hardware についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by