Unable to write to Simulink cache file 'C:\modelname.slxc' because you do not have write permission for the file.

52 ビュー (過去 30 日間)
Tejas
Tejas 2023 年 7 月 9 日
回答済み: Adeel 2024 年 6 月 1 日
when I am trying to generate c code from my model, I encounter this error, how to resolve this?
Unable to write to Simulink cache file 'C:\modelname.slxc' because you do not have write permission for the file.
  2 件のコメント
Tejas
Tejas 2023 年 7 月 9 日
yes, the directory is C, all my models are saved in C.

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

回答 (2 件)

Walter Roberson
Walter Roberson 2023 年 7 月 9 日
移動済み: Walter Roberson 2023 年 7 月 10 日
I mean C:\ itself not somewhere inside of the C drive.
You would get this error if your current directory is C:\ itself. Your current directory needs to a directory that you have write access to.
  5 件のコメント
Emmanuel
Emmanuel 2023 年 9 月 22 日
How did you changed the directory?
Tejas
Tejas 2023 年 9 月 22 日
Just go to your MATLAB home page, and change the folder where your model is saved..
like this example: there is a folder icon with green arrow --> just change that to the folder where your simulink model is saved... that will change to right directory..

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


Adeel
Adeel 2024 年 6 月 1 日
Error:Unable to write to Simulink cache file 'E:\Laptop Data\Personal\PHD DATA\UW\PI\MyModel.slxc' because you do not have write permission for the file.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by