Arduino Uno Connection in R2024a for Standalone Application

10 vues (au cours des 30 derniers jours)
Nathan Kimmitt
Nathan Kimmitt le 27 Août 2024
Modifié(e) : Malay Agarwal le 28 Août 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!

Réponses (1)

Malay Agarwal
Malay Agarwal le 28 Août 2024
Modifié(e) : Malay Agarwal le 28 Août 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!

Catégories

En savoir plus sur Instrument Control Toolbox Supported Hardware dans Help Center et File Exchange

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by