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

actualize added, empty simdata correct type

parent ccbcc2ce
No related branches found
No related tags found
No related merge requests found
......@@ -508,7 +508,7 @@ classdef SCDclass_algo
%obj.mdscontainer=obj.mdscontainer.setwavegenbasestruct([obj.getname '_simdata']);
for wgidx=1:numwavegens
wg=obj.mdscontainer.mdswavegens(wgidx);
eval(['simdata.' wg.gettarget '=timeseries;']);
eval(['simdata.' wg.gettarget '=timeseries(wg.castdata([0;0]),[0;1]);']);
end
assignin('base',[obj.getname '_simdata'],simdata);
else
......@@ -587,6 +587,21 @@ classdef SCDclass_algo
function obj = cleanwavegens(obj)
obj.mdscontainer=obj.mdscontainer.cleanwavegens;
end
function actualize(obj, shot)
% actualize(shot)
%
% this method actualizes (fetches from source
% and updates values) all defined
% tunable parameteres (previously added
% with the addparameter method) and
% waveforms (previously added via the addwavegen
% method)
actualizeparameters(obj, shot);
actualizewavegens(obj, shot);
end
%% Task container methods forwarders
function obj = addtask(obj, task)
......@@ -718,8 +733,9 @@ classdef SCDclass_algo
function setup(obj)
% setup()
%
% calls updatetemplatetp and
% calls updatetemplatetp
% buildworkspacetpstruct
% buildworkspacesimdata
%
% an algorithm block diagram
% should pass ctrl-d (instandalone opening)
......
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