First
(read only)
This property sets the first Storage element active. Returns 0 if none. Otherwise, it returns 1.
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;
% gets the values within the energy meter register for the active storage
Idx = DSSES.First;
myRegValues = DSSES.RegisterValues;