Trying to install arduino in MATLAB

1 view (last 30 days)
mallika L
mallika L on 21 Aug 2016
Edited: Hans Scharler on 20 Jul 2018
I have installed support package for Arduino but if I am trying to write and run the program, it will show "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". Kindly help me with this.
Thank you

Answers (1)

Pasc Peli
Pasc Peli on 21 Aug 2016
Type the following in the command window and try to connect again. I hope it helps!
delete (instrfind)
  1 Comment
mallika L
mallika L on 22 Aug 2016
Thank you for your answer Pasc peli, But still I get same kind of error, Is there any m-file I want to download or install.
Thank you

Sign in to comment.


Find more on Simulink 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!

Translated by