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
91e05e7b
Commit
91e05e7b
authored
2 years ago
by
Cristian Galperti
Browse files
Options
Downloads
Patches
Plain Diff
MARTe2 param and wavegen cfg printers added to algo class
- they were only available in expcode class before
parent
0b4c9b77
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
classes/SCDclass_algo.m
+27
-0
27 additions, 0 deletions
classes/SCDclass_algo.m
with
27 additions
and
0 deletions
classes/SCDclass_algo.m
+
27
−
0
View file @
91e05e7b
...
...
@@ -117,6 +117,33 @@ classdef SCDclass_algo
end
end
end
function
printMARTe2parconfig
(
obj
,
shot
)
%obj.mdscontainer.modeltogenerate=obj.modelname;
obj
.
mdscontainer
.
modeltogenerate
=
'all'
;
obj
.
mdscontainer
.
printMARTe2parconfig
(
shot
);
end
function
printMARTe2wgbusconfig
(
obj
,
shot
,
busname
,
frequency
,
varargin
)
% printMARTe2wgbusconfig(obj, shot, busname, frequency, varargin)
%
% prints cfg file for loading busname Simulink.Bus
% as a wavegen (or a set of them) in MARTe2
% shot can be -1 or a fixed shot (usually -1), but currently
% the Shot= entry is populated by a fixed macro
% frequency is the frequency of signal generation in MARTe2
% the optional parameter 'ddname' can be given to specify
% the data dictionary where the bus definition is, if omitted
% the default expcode level data dicationary is used
p
=
inputParser
;
addParameter
(
p
,
'ddname'
,
obj
.
datadictionary
,
@
(
x
)
ischar
(
x
));
parse
(
p
,
varargin
{:});
myddname
=
p
.
Results
.
ddname
;
obj
.
mdscontainer
.
printMARTe2wgbusconfig
(
shot
,
myddname
,
busname
,
frequency
);
end
%% General purpose getters
...
...
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