2019-07-15 11:07:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
% When the project opens, a startup script is ran.
|
|
|
|
% The startup script is defined below and is exported to the =project_startup.m= script.
|
|
|
|
|
2018-10-16 13:25:05 +02:00
|
|
|
project = simulinkproject;
|
|
|
|
projectRoot = project.RootFolder;
|
|
|
|
|
|
|
|
myCacheFolder = fullfile(projectRoot, '.SimulinkCache');
|
|
|
|
myCodeFolder = fullfile(projectRoot, '.SimulinkCode');
|
|
|
|
|
|
|
|
Simulink.fileGenControl('set',...
|
|
|
|
'CacheFolder', myCacheFolder,...
|
|
|
|
'CodeGenFolder', myCodeFolder,...
|
|
|
|
'createDir', true);
|
2019-12-13 09:31:19 +01:00
|
|
|
|
|
|
|
%% Load the Simscape Configuration
|
2020-02-18 11:33:04 +01:00
|
|
|
load('mat/conf_simulink.mat');
|