Arduino Uno Connection in R2024a for Standalone Application

11 visualizaciones (últimos 30 días)
Nathan Kimmitt
Nathan Kimmitt el 27 de Ag. de 2024
Editada: Malay Agarwal el 28 de Ag. de 2024
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!

Respuestas (1)

Malay Agarwal
Malay Agarwal el 28 de Ag. de 2024
Editada: Malay Agarwal el 28 de Ag. de 2024
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!

Categorías

Más información sobre Instrument Control Toolbox Supported Hardware en Help Center y File Exchange.

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by