Connection to Arduino hardware

5 次查看(过去 30 天)
Masayuki Kawakami
评论: Rohan Kale 2020-10-23
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 个评论
Rohan Kale
Rohan Kale 2020-10-23
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

请先登录,再进行评论。

回答(1 个)

Maadhav Akula
Maadhav Akula 2020-3-4

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by