Trouble connecting LEGOEV3 with matlab using bluetooth
3 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!