(read only)


This property sets the next VSOURCE object to be active; returns zero if no more.


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

DSSVSources = DSSCircuit.VSources;

% Activates the first VSource on the list

i = DSSVSources.First;

% Enumerates VSources by name

myNames = [];

while  i > 0,

       myNames = [myNames, DSSVSources.Name];

i = DSSVSources.Next;

end;