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!