(read/write)


Set/Get the time of day in fractional hours (02:30 = 2.5) at which Storage element will automatically go into charge state. Default is 2.0. 


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 storage device by name

DSSES.Name = 'myStorage';


% First, check the ES present state

myState = DSSES.State;

if myState = 0,

% if idling, setup the ES to discharge

DSS.State = 1,

end;

mySOC  = DSSES.puSOC;

myTCTr = DSSES.TimeChargeTrig


DSSSolution.Solve;