currdir = fullfile(rootPath,'test/Smlk/+InspcCtrl');   %the path from simulink currdir.
addpath(fullfile(rootPath,'test/Smlk/+InspcCtrl/mex'));
InspcCtrl.genBus.genBus();
Tstep = 0.0001;
Tinit = 0.001;
Tparam = 0.1;
%dstPathGenDataStruct = '';   %%left empty if no code generation is used yet.
dstPathGenDataStruct = 'test/Smlk/+InspcCtrl/genSrcInspc';

%Settings for the rapid accelerator mode, contribution for rtwmakecfg.m
addIncludepath_rtwmakecfg = ...
{ fullfile(rootPath, "test/Smlk/+InspcCtrl/srcC_Model") ...
, fullfile(rootPath, dstPathGenDataStruct) ... %special sources for this model 
};
addSrcpath_rtwmakecfg = ...
{ fullfile(rootPath, "test/Smlk/+InspcCtrl/srcC_Model") ... %special sources for this model 
, fullfile(rootPath, dstPathGenDataStruct) ...
};
addSrc_rtwmakecfg = ...
{ "Device_ObjOModules", "Controller_ObjOModules", "ParameterOptimizer_ObjOModules"    ... %special sources for this model 
};