FinishTimeStep
(method)
This method Call Cleanup, sample monitors, and increment time at end of time step.
Example
% Create DSS object
DSSObject = actxserver('OpenDSSEngine.DSS')
if ~DSSObject.Start(0),
disp('Unable to start openDSS');
return
end;
DSSText = DSSObject.Text;
DSSCircuit = DSSObject.ActiveCircuit;
% Compile a model
DSSText.Command = 'Compile C:\myPath\myModel.dss';
DSSSolution = DSSCircuit.Solution;
% set the control iterations to 1000
DSSSolution.ControlIterations = 1000;
% set simulation mode yearly
DSSSolution.Mode = 2;
% set simulation step size 1 h
DSSSolution.StepSize = 1;
% gets the name of the default load shape (yearly)
myDefLS = DSSSolution.DefaultYearly;
% set simulation hour 1.5
DSSSolution.dblHour = 1.5;
% solves the circuit without control actions
DSSSolution.SolveNoControl();
% Do control actions
DSSSolution.DoControlActions();
% finish time step
DSSSolution.FinishTimeStep();