Connection to Arduino hardware

4 views (last 30 days)
Masayuki Kawakami
Masayuki Kawakami on 2 Mar 2020
Commented: Rohan Kale on 23 Oct 2020
I have installed "MATLAB Support Package for Ardunio Hardware" with 2019b Windows10.
After installing the pkg, typing a=arduino() in the workspace, I get the error messages that Arduino IDE path is missing.
I try to recleaninstall this pkg , It shows same message.
>> a = arduino()
Updating server code on board Mega2560 (COM6). This may take a few minutes.
Arduino IDE at folder '' is corrupt. Open Add‑On Explorer to reinstall MATLAB Support Package for Arduino Hardware.
>> arduinoio.IDERoot
ans =
0×0 の空の char 配列
  1 Comment
Rohan Kale
Rohan Kale on 23 Oct 2020
Hi,
Can you check if there exists a text file named "arduinoide.instrset_install_info.txt" at the location whose pathname is returned by
>> fullfile(matlabshared.supportpkg.getSupportPackageRoot,'appdata','3p','win64','arduinoide.instrset')
If it exists, does it contain the correct path where arduino IDE is installed? For a successful installation, the text file should generally contain the path
>> fullfile(matlabshared.supportpkg.getSupportPackageRoot,'3P.instrset','arduinoide.instrset')
The arduino IDE is generally installed at the abovementioend location. In case, the text file is empty, contains incorrect path, or is missing, the arduinoio.IDERoot returns an empty array.
Hope it helps

Sign in to comment.

Answers (1)

Maadhav Akula
Maadhav Akula on 4 Mar 2020

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!