Skip to content
Snippets Groups Projects
Commit 99a3d685 authored by Federico Felici's avatar Federico Felici
Browse files

Also change CacheFolder based on expcode

parent 465118a4
No related branches found
No related tags found
No related merge requests found
......@@ -420,6 +420,15 @@ classdef SCDclass_expcode
fprintf('Setting up expcode %d, ''%s'', configuring main workspace variables ...\n',obj.maincode,obj.name);
obj.buildworkspacesimstruct;
obj.buildworkspacetpstruct;
%% Set Cache Folder for experimental code (avoid conflicts with other tmp files)
CacheFolder = fullfile(fileparts(mfilename('fullpath')),'gencodes',...
sprintf('CacheFolder-%d',obj.maincode));
fprintf('Setting Simulink Cache folder to %s\n',CacheFolder)
Simulink.fileGenControl('set',...
'CacheFolder',CacheFolder,...
'createdir',true);
end
function actualize(obj, shot, varargin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment