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

cfs12combined moved to wrappers folder

parent 8aa1e5e4
Branches
No related tags found
No related merge requests found
Showing
with 48 additions and 0 deletions
function obj = wrapperobj_cfs12combined()
%% Doublets SPC controller algorithm
obj = SCDclass_wrapper('algo_cfs12combined');
%% Timing of the algorithm
obj=obj.settiming(0,1e-3,1.0);
%% Dummy fixed param to define a dd
obj=obj.addfpinitfcn('algo_cfs12combined_loadfp','algo_cfs12combined_fp');
%% Define cfs1 and cfs2 algo obj in the base workspace
addpath('../cfs1');
addpath('../cfs2');
obj1=algoobj_cfs1;
obj2=algoobj_cfs2;
%%
assignin('base','obj1',obj1);
assignin('base','obj2',obj2);
evalin('base','obj1.init; obj1.setup; ');
evalin('base','obj2.init; obj2.setup; ');
%% Referenced data dictionaries
obj=obj.addrefdd('algo_cfs1.sldd',obj1);
obj=obj.addrefdd('algo_cfs2.sldd',obj2);
%% Workaround to define proc buses in one place only
% NOTE: this is not to be replicated,
% an higher hyerarchical SCDDS level must be put in place
% (eg. SPC wrappers and expcodes objects)
% to do it properly
dd1=Simulink.data.dictionary.open('algo_cfs1.sldd');
ddd1=dd1.getSection('Design Data');
ddd1.deleteEntry('algo_cfs2_procout');
dd2=Simulink.data.dictionary.open('algo_cfs2.sldd');
ddd2=dd2.getSection('Design Data');
ddd2.deleteEntry('algo_cfs1_procout');
dd1.addDataSource('algo_cfs2.sldd');
dd2.addDataSource('algo_cfs1.sldd');
%
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment