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.

50 ビュー (過去 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 日
Thank you for the response. I already found the problem.

サインインしてコメントする。

採用された回答

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 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by