(read only)


Advance the active Generator element pointer to the next Generator. Returns 0 if no more Generators.


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';

DSSGen = DSSCircuit.Generators;

myGenNames = [];

% swipes all the generators to get their names (to make the example interesting)

i = DSSGen.First;

while  i > 0,

                    myGenNames = [myGenNames;DSSGen.Name];

i = DSSGen.Next;

end;