(read only)


This property returns a double Array of all bus voltages (each node) magnitudes in Per unit.


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 voltages (pu) for all the buses in the model

myNodes = DSSCircuit.AllNodeNames;

myVolt = DSSCircuit.AllBusVmagPu;

mySize = size(myVolt);

myVmat = [];

% Creates a matrix of strings with the node name and V (mag)

for i = 1:mySize(2),

myVmat = [myVmat;[myNodes(i), num2str(myVolt(1,i))]];

end;