Skip to content
Snippets Groups Projects
Commit 91e05e7b authored by Cristian Galperti's avatar Cristian Galperti
Browse files

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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment