(read only)


This property sets the Next Storage element active. Returns 0 if none. Otherwise, returns the index of the active Storage device.


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;

DSSES = DSSCircuit.Storages;

% Compile a model        

DSSText.Command = 'Compile C:\myPath\myModel.dss';

DSSSolution.Solve;


% Activates the first storage on the list (if any)

DSSES.First;

idx = DSSEs.Next;

if idx > 0,

myRegValues = DSSES.RegisterValues;

end;