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

harness simulation timing from algo obj

parent c25b1b2c
No related branches found
No related tags found
No related merge requests found
......@@ -31,9 +31,9 @@ SimIn = SimIn.setModelParameter('SaveOutput','on'); % set to save outport signal
SimIn = SimIn.setModelParameter('SignalLogging','on'); % set to save log signals
SimIn = SimIn.setModelParameter('OutputSaveName','SimOut');
SimIn = SimIn.setModelParameter('SaveFormat','Dataset');
%SimIn = SimIn.setModelParameter('StartTime',num2str(time(1)));
%SimIn = SimIn.setModelParameter('StopTime',num2str(time(end)));
%SimIn = SimIn.setModelParameter('FixedStep',num2str(mean(diff(time))));
SimIn = SimIn.setModelParameter('StartTime',num2str(obj.gettiming().t_start));
SimIn = SimIn.setModelParameter('StopTime',num2str(obj.gettiming().t_stop));
SimIn = SimIn.setModelParameter('FixedStep',num2str(obj.gettiming().dt));
% simulate - simulate only single types to save time
result = sim(SimIn);
......
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