Error connecting Arduino hardware to MATLAB R2018b
Show older comments
I installed MATLAb support package for ardunio hardware. When I type a=arduino() in the workspace. I get the error message
>> a= arduino ()
Updating server code on board Mega2560 (/dev/cu.usbmodem14101). This may take a few minutes.
Undefined variable "ide" or class "ide.internal.getArduinoIDE
I'm using Mac by the way. Does anyone know what may be the problem?
5 Comments
Walter Roberson
on 24 Mar 2019
I do not find any reference to that in the code. I find reference to ide.internal.getArduinoIDERootDir() . That is defined at
~/Documents/MATLAB/SupportPackages/R2018b/toolbox/realtime/targets/arduinoide/+ide/+internal/getArduinoIDERootDir.p
Mohamed Elazab
on 24 Mar 2019
Walter Roberson
on 24 Mar 2019
Try going into Add-Ons -> Get Add-Ons to get the Add-on Explorer, and search there for Arduino, and install MATLAB Support Package for Arduino Hardware.
I suspect you might have installed Simulink Support Package for Arduino Hardware.
Mohamed Elazab
on 24 Mar 2019
Walter Roberson
on 24 Mar 2019
Looks like I copied the directory wrong when I posted before
~/Documents/MATLAB/SupportPackages/R2018b/toolbox/realtime/targets/arduinoide/+ide/+internal/getArduinoIDERootDir.p
I installed the package this afternoon in response to your question. I do not have the toolbox/targets directory that you mention.
Accepted Answer
More Answers (1)
Madhu Govindarajan
on 25 Mar 2019
0 votes
Have you tried uninstalling and reinstalling the support package? When installing these support packages if additional terminal windows open do not close them.
Categories
Find more on 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!