Simulink error message when running the model on arduino uno

2 views (last 30 days)
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.

Accepted Answer

aakash dewangan
aakash dewangan on 19 Oct 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.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!