From cb99e9fba01eac593cdc8202e6606ecd2f25114e Mon Sep 17 00:00:00 2001
From: galperti <cristian.galperti@epfl.ch>
Date: Wed, 22 Jun 2022 17:40:18 +0200
Subject: [PATCH] help added

---
 algos/template/duplicate_template.m | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/algos/template/duplicate_template.m b/algos/template/duplicate_template.m
index cc801ba..f0f995d 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'}, ...
-- 
GitLab