Matlab will not recognize Arduino commands even after installing hardware support packages

5 views (last 30 days)
I have installed the two Matlab/Simulink Arduino support packages shown in the image below, but even so, Matlab doesn't seem to recognize the Arduino commands.
a=arduino() works for setting up the connection, but for some reason Matlab won't take a=arduino('COM5', 'Uno'), telling me I have too many input arguments. Similarly, Matlab does not recognize the function readVoltage(a, 'A0'). Images of the errors are attached. (In the first image, the arduino setup line is commented out, but obviously it was not when being tested)
Any suggestions would be much appreciated.
  3 Comments
Fatima Kishimoto
Fatima Kishimoto on 24 Feb 2019
I was getting this exact same error and i tried what you asked and it gives these same paths relative to my installation.What to do next?I even tried changing the shadowed file name but the error still isnt fixed.
Madhu Govindarajan
Madhu Govindarajan on 25 Feb 2019
Hi Fatima,
Depends on which version of MATLAB you are using. Is it possible in your version to do arduinosetup?
Type this command in MATLAB and see if you can program the board using that workflow. If this command does not exist please share MATLAB version details.
Regards,
Madhu

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!