Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCDDS-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
SCDDS
SCDDS-core
Commits
06ecfecb
Commit
06ecfecb
authored
Nov 25, 2021
by
Cristian Galperti
Committed by
Cristian Galperti
Nov 25, 2021
Browse files
Options
Downloads
Patches
Plain Diff
exported configurations .m are not put in a subfolder
parent
837bbc20
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
configurations/.gitignore
+1
-1
1 addition, 1 deletion
configurations/.gitignore
configurations/config_export_to_base_and_scripts.m
+14
-6
14 additions, 6 deletions
configurations/config_export_to_base_and_scripts.m
with
15 additions
and
7 deletions
configurations/.gitignore
+
1
−
1
View file @
06ecfecb
configurations.sldd
configurationSettin
gs
*
exportedcf
gs
This diff is collapsed.
Click to expand it.
configurations/config_export_to_base_and_scripts.m
+
14
−
6
View file @
06ecfecb
...
...
@@ -9,10 +9,18 @@ dict_name='configurations_container';
hDict
=
Simulink
.
data
.
dictionary
.
open
([
dict_name
,
'.sldd'
]);
hDesignData
=
hDict
.
getSection
(
'Configurations'
);
childNamesList
=
hDesignData
.
evalin
(
'who'
);
curpath
=
pwd
;
[
fcnpath
,
~
,
~
]
=
fileparts
(
mfilename
(
'fullpath'
));
try
system
([
'cd '
fcnpath
'; mkdir exportedcfgs'
]);
for
n
=
1
:
numel
(
childNamesList
)
hEntry
=
hDesignData
.
getEntry
(
childNamesList
{
n
});
fprintf
(
'Exporting %s to base workspace and %s.m ...\n'
,
hEntry
.
Name
,
hEntry
.
Name
);
assignin
(
'base'
,
hEntry
.
Name
,
hEntry
.
getValue
);
evalin
(
'base'
,
[
hEntry
.
Name
'.saveAs(
''
'
hEntry
.
Name
'
''
);'
]);
evalin
(
'base'
,
[
hEntry
.
Name
'.saveAs(
''
'
fcnpath
'/exportedcfgs/'
hEntry
.
Name
'
''
);'
]);
end
catch
ME
report
=
getReport
(
ME
)
system
([
'cd '
curpath
]);
end
system
([
'cd '
curpath
]);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment