Arduino clearing existing connection issue
1 Comment
Answers (3)
3 Comments
0 votes
0 votes
To avoid the “Error using arduino (line 156) MATLAB connection to UNO at COM3 exists in your workspace. To create a new connection clear the existing object.
Unplug and replug the arduino into the computer, instead of clicking on the arduino’s name you set up. Click set up by usb, then in the top left click hardware setup and go through all of the steps. I don’t select any special libraries. This should work. Make sure to have all of your variables cleared beforehand.
I’ve been having to do this everytime I connect my computer to the arduino even when all objects/workspace variable are cleared.
Categories
Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!