Connecting to Arduino with Matlab on Windows 7

조회 수: 2 (최근 30일)
Nick
Nick 2013년 7월 24일
Hi,
I am trying to connect to my Arduino Uno through Matlab 2012a. I have looked through the forums and can't seem to find anyone with quite this exact issue.
I have already successfully installed the drivers and confirmed an operational connection through COM4 using the Arduino IDE. Now, after installing the Arduino toolbox for Matlab, I get the following error:
Open failed: Port: COM4 is not available. Available ports: COM1, COM3. Use INSTRFIND to determine if other instrument objects are connected to the requested device. Error using arduino (line 83) Could not open port: COM4
I get the same error when tring to connect on my own without using the toolbox using 'serial' and 'fopen'. I ensured that the Arduino IDE is closed prior to attempting this, so that is not the issue.
Any assistance is much appreciated. Thanks!
-Nick
  댓글 수: 1
Alon
Alon 2013년 7월 28일
This can be solved many times by closing and re-opening MATLAB, or re-booting the computer.

댓글을 달려면 로그인하십시오.

답변 (1개)

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2013년 8월 28일
Nick, Try closing the Arduino IDE and Arduino Serial Monitor tool before using the Arduino toolbox for MATLAB. Otherwise, reboot your system and leave Arduino IDE unopened.

카테고리

Help CenterFile 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!

Translated by