I have a problem with connecting my arduino uno to matlab.. It actually runs perfectly for the first time but when I run it again it says this (Failed to open serial port COM4 to communicate with Arduino board Uno. Make sure there is no other MATLAB arduino object for this board. For troubleshooting, see Arduino Hardware Troubleshooting.
.. I'm using this command to connect: a = arduino('com4','uno') ..
If anyone can help here I would appreciate it ...
2 Comments
Sumit Banerjee (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/261075-how-can-i-run-matlab-connected-to-arduino-more-than-once#comment_365480
Test Tester (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/261075-how-can-i-run-matlab-connected-to-arduino-more-than-once#comment_379667
Sign in to comment.