diff --git a/algos/template/duplicate_template.m b/algos/template/duplicate_template.m index cc801baab89d29fc0bd879755aa95087342308da..f0f995db816d3e244589b919f9ba3599d8d640dc 100644 --- a/algos/template/duplicate_template.m +++ b/algos/template/duplicate_template.m @@ -41,6 +41,16 @@ for i=1:numel(modellist) close_system(modelname); end +% The way I found to get block diagrams +% programmatically (of opened system) is via: +% proplist = find_system +% paramstruct get_param(proplist{1},'DialogParameters') +% and then +% get_param(proplist{1},<paramstruct field> +% +% hence I do not see other option than +% keeping a list lije this +% updated with the template content: fprintf('Changing block diagrams properties ...\n'); list={{'algo_template/realtime' ,'SampleTime'}, ... {'algo_template/signal_in' ,'OutDataTypeStr'}, ...