Unable to connect arduino to MATLAB R2016b through the MATLAB Support Package for Arduino Hardware

1 Ansicht (letzte 30 Tage)
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

Antworten (1)

Rollin Baker
Rollin Baker am 12 Apr. 2017
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

Kategorien

Mehr zu MATLAB Support Package for Arduino Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by