Error creating directory "\\......\rtwgen_tlc

5 次查看(过去 30 天)
I'm using Matlab 2017b and have MINGW as compiler. I'm running a simulink file in acceleration mode for many scenarios in a simple for loop,save some parameters on the go, and clear the rest.
for i=1:2000
warning('off','all');
out_one=sim(in(1,i));
time(:,1)=out_one.angle_difference.time;
RRA(:,1:10)=out_one.angle_difference.signals.values;
[rows,cols,vals]=find(abs(RRA(:,1:10))>=180,1);
if rows>1
CCT=time(rows,1);
StabilityIndex=0;
else
StabilityIndex=1;
CCT=1;
end
AA.TSAReport(i,1)=StabilityIndex; AA.TSAReport(i,2)=CCT;
save('TSA_removedACOPFs_One.mat','AA');
clear out_one; clear time;clear RRA;clear rows;clear cols;clear vals; clear angle_difference;
end
Before I run the loop though, I also creat an accelerator model of my simulink file.
model= 'name of my model';
load_system(model);
set_param(name of my model,'AccelVerboseBuild','off');
accelbuild name of my model;
When I run the loop, after some iterations I get this error:
Error using my code name (line 378)
Error while JIT Accelerating model
Error creating directory "\\directory of my script and simulation files\rtwgen_tlc":
fl:filesystem:AccessDenied
Under configuration parameters>code generation>advance parameters I can see that there are some options regarding tlc but it seems it doesn't help.
Any ideas on how to solve this?
  2 个评论
Walter Roberson
Walter Roberson 2019-11-7
Could you confirm that the error message naming the directory has the directory name ending in t l c period space ?
Does a directory or file rtwgen_tlc exist in your current directory? Is there any permissions issue that might prevent a directory with that name from being created? What happens if you create it ahead of time?
Ali Meghdadi
Ali Meghdadi 2019-11-7
编辑:Ali Meghdadi 2019-11-7
Sorry, doesn't have period or space. Well there's an empty folder under slprj\accel\my model name\rtwgen_tlc, which must have been something that "accelbuild" creates. I'm not sure what it does though.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by