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

Build each experimental code to a separate directory

parent 459a62d1
No related branches found
No related tags found
No related merge requests found
...@@ -555,6 +555,15 @@ classdef SCDclass_expcode ...@@ -555,6 +555,15 @@ classdef SCDclass_expcode
end end
function build(obj) function build(obj)
fprintf('\n=== Building %s ===',obj.name);
CodeGenFolder = fullfile(fileparts(mfilename('fullpath')),'gencodes',...
sprintf('CodeGenFolder-%d',obj.maincode));
fprintf(' ...Setting code generation folder to %s\n',CodeGenFolder)
Simulink.fileGenControl('set',...
'CodeGenFolder',CodeGenFolder,...
'createdir',true);
assert(~isempty(getenv('RTCCODE_LIBPATH')),'RTCCODE_LIBPATH environment variable needs to be defined to compile'); assert(~isempty(getenv('RTCCODE_LIBPATH')),'RTCCODE_LIBPATH environment variable needs to be defined to compile');
SCDconf_setCODEconf('configurationSettingsCODEicc') SCDconf_setCODEconf('configurationSettingsCODEicc')
for inode=1:8 for inode=1:8
......
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