diff --git a/algos/template/algoobj_template.m b/algos/template/algoobj_template.m index b153552844ba900cbfd469c67adbbec4cd7be0d0..53d217392255665eef121bf2388810f8f4405f9a 100644 --- a/algos/template/algoobj_template.m +++ b/algos/template/algoobj_template.m @@ -21,8 +21,21 @@ obj=obj.addparameter(SCDclass_mdsparnumeric('kv1','rowvect' ,'srcsrv','s obj=obj.addparameter(SCDclass_mdsparnumeric('kv2','colvect' ,'srcsrv','spcpc171.epfl.ch','srctree','martetest','shot',parshot)); obj=obj.addparameter(SCDclass_mdsparnumeric('km1','matrix' ,'srcsrv','spcpc171.epfl.ch','srctree','martetest','shot',parshot)); +%% 2nd tunable parameters structure/parameters +obj=obj.addtunparamstruct('algo_template_tp2', @()algo_template_loadtp(), false); +obj=obj.addparameter(SCDclass_mdsparnumeric('kb1','enable' ,'srcsrv','spcpc171.epfl.ch','srctree','martetest','shot',parshot)); + + %% Wavegens +obj=obj.addwavegenbasetruct('algo_template_inbus'); obj=obj.addwavegen(SCDclass_mdswgsigsingle( 'ai.ch001','wg1' ,'srcsrv','spcpc171.epfl.ch','srctree','martetest','shot',parshot)); +obj=obj.addwavegen(SCDclass_mdswgsigsingle( 'ai.ch002','wg2' ,'srcsrv','spcpc171.epfl.ch','srctree','martetest','shot',parshot)); + +%% 2nd wavegen base structure/signals +obj=obj.addwavegenbasetruct('algo_template_inbus2'); +obj=obj.addwavegen(SCDclass_mdswgsigsingle( 'ai.ch003','wg1' ,'srcsrv','spcpc171.epfl.ch','srctree','martetest','shot',parshot)); +obj=obj.addwavegen(SCDclass_mdswgsigsingle( 'ai.ch004','wg2' ,'srcsrv','spcpc171.epfl.ch','srctree','martetest','shot',parshot)); + %% Buses obj = obj.addbus('algo_template_inBus', 'algo_template_inBus_def' ); @@ -34,7 +47,7 @@ obj = obj.addbus('',@() algo_template_signal_buses()); %% Tasks %% Print (optional) -obj.printinfo +obj.printinfo; end