The call to slrt_make_rtw_hook, during the exit hook generated the following error: Cannot write to destination: Use the 'f' option to override.

46 views (last 30 days)
Hi, when building any model for simulink real-time i get the following error message. About one month ago i was able to build and run the model successfully. I haven't changed anything about the model, matlab/simulink, the compiler or the pc in general. I tryed different models and changed the folder as is suggested here ( https://de.mathworks.com/matlabcentral/answers/428535-simulink-speedgoat-error-slrt_make_rtw_hook?s_tid=srchtitle ). I'm using matlab 2019b on windows 10. I have no clue what changed that is causing this error. Dose matlab install updates automatically? Can a windows update cause this error?
The call to slrt_make_rtw_hook, during the exit hook generated the following error:
Cannot write to destination: C:\Users\Ingomar\Desktop\hil\test.mldatx. Use the 'f' option to override.
The build process will terminate as a result.
Caused by:
Cannot write to destination: C:\Users\Ingomar\Desktop\hil\test.mldatx. Use the 'f' option to override
  2 Comments
Walter Roberson
Walter Roberson on 8 Oct 2021
Several possibilities:
  • C:\Users\Ingomar\Desktop\hil\test.mldatx might exist, but might be owned by someone else, or might have security settings on it that prevent you from writing to it. If so then try deleting it yourself
  • C:\Users\Ingomar\Desktop\hil might exist, but might be owned by someone else, or might have security settings on it that prevent you from writing to it. If so then look at the security properties of it to try to figure out what is going on.
  • Or maybe you are now using a different Windows user and no longer have write access to C:\Users\Ingomar

Sign in to comment.

Accepted Answer

Ingomar Schröder
Ingomar Schröder on 8 Oct 2021
Found the "problem"! It's because of "Back-up & Sync" changed to "Google Drive". It was working in Back-up & Sync but not in Google Drive. I already had the guess that there might be a problem. So i copied the folder out of the Google Drive space. But Google Drive somehow changes the folder permanently. To make it work i had to create a new folder outside of Google Drive and copy only the single files into it. If you copy a working folder to Google Drive and back again it does not build anymore. I compared the properties of a folder from Google Drive to a folder created outside of it and couldn't find a difference.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!