This property sets/gets the kWh billed for this period. Can be used with Cfactor for load allocation. Default is 0. See help on kVA and Cfactor and kwhDays.


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');



DSSText = DSSObject.Text;

DSSCircuit = DSSObject.ActiveCircuit;

% Compile a model        

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

DSSLoads = DSSCircuit.Loads;

% activates the first load on the list

i = DSSLoads.First;

% gets the kWh billing period for the active load

mykWh = DSSLoads.kwh;