Add simulink project
This commit is contained in:
5
src/project_shutdown.m
Normal file
5
src/project_shutdown.m
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
% When the project closes, it runs the =project_shutdown.m= script defined below.
|
||||
|
||||
Simulink.fileGenControl('reset');
|
18
src/project_startup.m
Normal file
18
src/project_startup.m
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
% When the project opens, a startup script is ran.
|
||||
% The startup script is defined below and is exported to the =project_startup.m= script.
|
||||
|
||||
project = simulinkproject;
|
||||
projectRoot = project.RootFolder;
|
||||
|
||||
myCacheFolder = fullfile(projectRoot, '.SimulinkCache');
|
||||
myCodeFolder = fullfile(projectRoot, '.SimulinkCode');
|
||||
|
||||
Simulink.fileGenControl('set',...
|
||||
'CacheFolder', myCacheFolder,...
|
||||
'CodeGenFolder', myCodeFolder,...
|
||||
'createDir', true);
|
||||
|
||||
%% Load the Simscape Configuration
|
||||
load('mat/conf_simscape.mat');
|
Reference in New Issue
Block a user