Simulink error message when running the model on arduino uno

5 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

aakash dewangan
aakash dewangan am 19 Okt. 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.

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by