Next
(read only)
This property sets the next reactor element active. Returns 0 if none. Otherwise, it returns the index of the active element.
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;
DSSSolution = DSSCircuit.Solution;
DSSRc = DSSCircuit.Reactors;
% Compile a model
DSSText.Command = 'Compile C:\myPath\myModel.dss';
DSSSolution.Solve;
% gets the name of the first reactor in the model (if any)
Idx = DSSRc.First;
myName = DSSRc.Name;
% gets the name of the next reactor in the model (if any)
Idx = DSSRc.Next;
myName2 = DSSRc.Name;