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

回答 (1 件)

Rollin Baker
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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by