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.

48 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2021-10-8
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

请先登录,再进行评论。

采纳的回答

Ingomar Schröder
Ingomar Schröder 2021-10-8
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.

更多回答(0 个)

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by