Simulink error message when running the model on arduino uno

조회 수: 5 (최근 30일)
aakash dewangan
aakash dewangan 2021년 10월 17일
답변: aakash dewangan 2021년 10월 19일
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.

채택된 답변

aakash dewangan
aakash dewangan 2021년 10월 19일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by