(read only)


This property returns an array of distances from parent EnergyMeter for each Node. Corresponds to AllBusVMag sequence.


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;

% Gets the distances for all buses in the model to the parent Energy meter

myNodeDistances = DSSCircuit.AllNodeDistances;

myNodeNames = DSSCircuit.AllNodeNames;

myTable = [];

% Creates a table with node names and distances next to each other

for i = 1:size(myNodeNames),

myTable = [myTable;[myNodeNames(i),myNodeDistances(1,i)]];

end;