Error in compiled standalone application using Arduino Support Package

2 ビュー (過去 30 日間)
David Wilby
David Wilby 2021 年 11 月 16 日
コメント済み: David Wilby 2021 年 11 月 17 日
Hi, I have written an R2021a mlapp standalone application that I have compiled and installed on Windows 10 using the installer produced by compiler.package.installer.
This includes the arduino hardware support package for matlab (https://uk.mathworks.com/help/releases/R2021a/supportpkg/arduinoio/ug/create-standalone-applications-for-arduino-hardware-from-matlab-programs.html)
On connecting to the arduino via
a = arduino();
I get the error:
The path "C:\Users\USERNAME\AppData\Local\Temp\USERNAME\mcrCache9.10\ProjectName1\" is not a valid message catalog resource path
and the arduino does not connect. Can anyone help?
One thing I suspect is that this relates to the requirement to have the Arduino IDE installed for standalone applications that use the arduino support package. It's not clear to me from the documentation how to configure the path to the IDE.
Thanks in advance.
  1 件のコメント
David Wilby
David Wilby 2021 年 11 月 17 日
Further to this, is there any way to pass the COM port, board and arduino IDE path programmatically rather than using the "Configure Arduino" dialog? https://uk.mathworks.com/help/supportpkg/arduinoio/ug/create-standalone-applications-for-arduino-hardware-from-matlab-programs.html

サインインしてコメントする。

回答 (1 件)

David Wilby
David Wilby 2021 年 11 月 17 日
I have found that this problem is solved when using the application compiler dialog in R2021a (launched by applicationCompiler), which automatically detects and adds the hardware support package.
However, when compiling with compiler.build.standaloneApplication and compiler.package.installer this is not the case.
It looks like that under R2021b, inclusion of support packages has been improved with https://uk.mathworks.com/help/compiler/compiler.build.standaloneapplicationoptions.html
  1 件のコメント
David Wilby
David Wilby 2021 年 11 月 17 日
The solution was to specify the support packages to the compiler using the 'Support Packages' option available from R2021b.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by