Next
(read only)
Advance the active ISource element pointer to the next ISource. Returns 0 if no more ISources.
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';
DSSIsources = DSSCircuit.Isources;
myISNames = [];
% swipes all the ISources to get their names (to make the example interesting)
i = DSSIsources.First;
while i > 0,
myISNames = [myISNames;DSSIsources.Name];
i = DSSIsources.Next;
end;