Unable to connect arduino to MATLAB R2016b through the MATLAB Support Package for Arduino Hardware
1 次查看(过去 30 天)
显示 更早的评论
I would like to use Matlab with its GUI to visualize real-time data acquired using Arduino UNO board. When I define a variable a=arduino('comPort') it takes more than 20 minutes to read Arduino board. The strange thing is that the problem started after few connections between Arduino and Matlab. Does anyone know where the problem could be?
Thank you in advance
0 个评论
回答(1 个)
Rollin Baker
2017-4-12
Hi Giulia,
Some users have reported that connecting to an Arduino can be very slow if your computer's Bluetooth is turned on. The reason for this is that when Bluetooth is turned on, your PC activates 6 COM ports, which are all searched by the "arduino" command (taking up more time than is necessary). This could explain why the issue only appeared recently; it's possible that you had Bluetooth turned off on previous connection attempts. Make sure your Bluetooth is off and see if you can get a faster connection.
Also, R2017a contained some changes to the port detection for the Arduino. If Bluetooth is necessary for your setup, see if you can upgrade to R2017a and try connecting to the Arduino with it turned on.
Good luck with your Arduino project,
Rollin
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!