Arduino Uno Connection in R2024a for Standalone Application
25 ビュー (過去 30 日間)
古いコメントを表示
Hi All,
I recently updated to R2024a and now when I try to connect to my Arduino in a standalone application, instead of asking for the IDE it now asks for a CLI. I'm not really too familiar with this.
Before I had an input that specified the IDE path, but now I can't even have it successfully connect because there's no valid CLI path. I downloaded the CLI executable and placed it in the Arduino folder but I'm not entirely sure where to go from there.
In the Configure Arduino screen I specify the Arduino CLI Path but it rejects it, saying "Enter a valid Arduino CLI path". I have no trouble connecting to the Arduino in the Matlab UI by simply running a = arduino();
Code Before:
a = arduino('COM4', 'Uno', 'ArduinoIDEPath', 'C:\Program Files\arduino-1.8.16')
I'm assuming that once I have a valid CLI path I may be able to just update the code above with something analagous, such as 'ArduinoCLIPath'
Thanks!
0 件のコメント
回答 (1 件)
Malay Agarwal
2024 年 8 月 28 日
編集済み: Malay Agarwal
2024 年 8 月 28 日
You can refer to the following example for a step-by-step guide on how to create standalone applications for Arduino: https://www.mathworks.com/help/matlab/supportpkg/create-standalone-applications-for-arduino-hardware-from-matlab-programs.html.
The example also provides links to download the Arduino CLI and to set it up according to your board.
Hope this helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Arduino Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!