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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
SCDDS
SCDDS-core
Commits
fa0149b0
Commit
fa0149b0
authored
5 years ago
by
Cristian Galperti
Browse files
Options
Downloads
Patches
Plain Diff
RTLIUQE first run on MARTe2
parent
86646305
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
code/functions/SCDconf_setCODEconf.m
+13
-4
13 additions, 4 deletions
code/functions/SCDconf_setCODEconf.m
test/simulink_codegen_tests/ert_shrlib_scd.tlc
+1
-1
1 addition, 1 deletion
test/simulink_codegen_tests/ert_shrlib_scd.tlc
tests/test_expcodes.m
+15
-2
15 additions, 2 deletions
tests/test_expcodes.m
with
29 additions
and
7 deletions
code/functions/SCDconf_setCODEconf.m
+
13
−
4
View file @
fa0149b0
% Sets the code generation configuration settings on all the models
% If called with 0 arguments it copies :
% configurationSettingsCODE -> configurationSettings
% otherwise it takes the first argument as the name of the
% configuration settings to be copied into configurationSettings
function
[]
=
SCDconf_setCODEconf
()
disp
(
'Setting configurationSettings = configurationSettingsCODE at tcv level ...'
);
d
=
Simulink
.
data
.
dictionary
.
open
(
'tcv.sldd'
);
function
[]
=
SCDconf_setCODEconf
(
varargin
)
if
nargin
==
0
codeconfname
=
'configurationSettingsCODE'
;
else
codeconfname
=
varargin
{
1
};
end
fprintf
(
'Setting configurationSettings = %s at tcv level ...\n'
,
codeconfname
);
d
=
Simulink
.
data
.
dictionary
.
open
(
'configurations.sldd'
);
dd
=
getSection
(
d
,
'Configurations'
);
activeconf
=
dd
.
getEntry
(
'configurationSettings'
);
codeconf
=
dd
.
getEntry
(
'configurationSettingsCODE'
);
codeconf
=
dd
.
getEntry
(
codeconfname
);
configurationSettings
=
codeconf
.
getValue
;
configurationSettings
.
Name
=
'configurationSettings'
;
activeconf
.
deleteEntry
;
...
...
This diff is collapsed.
Click to expand it.
test/simulink_codegen_tests/ert_shrlib_scd.tlc
+
1
−
1
View file @
fa0149b0
...
...
@@ -29,7 +29,7 @@
%% generate export symbol description files.
%include "export_shrlib_def_scd.tlc"
%%include "export_shrlib.tlc"
%%include "export_shrlib.tlc"
export_shrlib_def_scd
%% The contents between 'BEGIN_RTW_OPTIONS' and 'END_RTW_OPTIONS' in this file
%% are used to maintain backward compatibility to R13 and preR13 custom target
...
...
This diff is collapsed.
Click to expand it.
tests/test_expcodes.m
+
15
−
2
View file @
fa0149b0
...
...
@@ -6,7 +6,8 @@ classdef test_expcodes < matlab.unittest.TestCase
end
properties
(
MethodSetupParameter
)
expcode_number
=
{
'1'
,
'1005'
,
'1006'
,
'1010'
};
% list of expcodes to test
%expcode_number = {'1','1005','1006','1010'}; % list of expcodes to test
expcode_number
=
{
'1010'
};
% list of expcodes to test
end
methods
(
TestClassSetup
)
...
...
@@ -45,12 +46,24 @@ classdef test_expcodes < matlab.unittest.TestCase
end
methods
(
Test
)
function
tes
d
t_expcode
(
testCase
)
function
test_expcode
(
testCase
)
fprintf
(
'\n === Testing Simulink compilation for expcode %d: %s === \n'
,
...
testCase
.
expcode_obj
.
maincode
,
testCase
.
expcode_obj
.
name
);
% attempt compiling tcv.slx for this expcode
testCase
.
expcode_obj
.
compile
;
% compile tcv.slx with this expcode
end
function
test_gencode
(
testCase
)
switch
testCase
.
expcode_obj
.
maincode
case
1010
SCDconf_setCODEconf
(
'configurationSettingsCODEicc'
)
rtwbuild
(
'SCD_rtccode_02_02'
);
rtwbuild
(
'SCD_rtccode_02_03'
);
otherwise
% do nothing
end
end
end
end
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
register
or
sign in
to comment