Arduino Uno Connection in R2024a for Standalone Application
조회 수: 12 (최근 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!