Simulink error message when running the model on arduino uno

4 visualizzazioni (ultimi 30 giorni)
Hello,
I am trying to run a simulink model in arduino Uno. But whenever i click on the "Monitor and Tune" button, it gives me an error message, which says:
""Top model targets built: Model Action Rebuild Reason ======================================================================== encoder2021b Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 0m 14.14s
Error(s) encountered while building "encoder2021b"
can someone please tell me what is the cause of this error, and how can i resolve it.
Any help will be greatly apptreciated.

Risposta accettata

aakash dewangan
aakash dewangan il 19 Ott 2021
I am the one who posted this question, and I found the solution. So, i thought I should share it here.
The problem was due to path/working directory in MATLAB interface (not simulink). When I give path in MATLAB, which is different from the location of the simulink code, then did not see error. One more thing, do not give path (in MATLAB) or folder location, which is in very deep. For example: you can give location of the first folder of your C or D or E drive in your computer.
I Hope this will help.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by