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

81 次查看(过去 30 天)
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 个)

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 个评论
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 CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by