Effacer les filtres
Effacer les filtres

Connect Matlab to Arduino without delete the program which is already there

2 vues (au cours des 30 derniers jours)
Matteo Bonato
Matteo Bonato le 26 Fév 2022
Réponse apportée : Tushar le 6 Déc 2023
Good evening,
I am able to connect Matlab to arduino but I can not avoid that when Matlab starts to run it deletes a program which there was before.
Help me please.
Thank you

Réponses (1)

Tushar
Tushar le 6 Déc 2023
Hi Matteo,
I understand that you are facing issues while programming an Arduino board with MATLAB. To get you started, please ensure that the Arduino board is connected to the computer. Use the command below to connect to Arduino hardware with MATLAB.
a = arduino();
I am assuming that you can connect to the Arduino board and execute the desired program. However, MATLAB should not automatically delete the program already on the Arduino. Ensure that the RESET button on the board is not pressed. MATLAB reprograms the Arduino when "ForceBuildOn" is set as true. The default value is set to false. You can set the value of "ForceBuildOn" by using the below command.
a = arduino('ForceBuildOn',false);
For more information on connecting an Arduino board with MATLAB, refer to the following documentation.
I hope this clarifies the issues you are facing.
Regards,
Tushar

Catégories

En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by