Arduino Uno Connection in R2024a for Standalone Application
11 次查看(过去 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 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!