(read only)


This property returns the an array with the residual currents for each terminal: (mag, angle).


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;

DSSLines = DSSCircuit.Capacitors;

% Compile a model        

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

DSSActiveElement = DSSCircuit.ActiveCktElement;

% Sets the first line of the list as the active element

if DSSLines.First > 0,

    % Gets the residual currents for all phases of the active element

    myRCurr = DSSActiveElement.Residuals;

    mySize = size(myRCurr);

    % organizes the array in complex pairs

    myRMat = []

    for a = 1:2:mySize(2),

        myRMat = [myRMat;[myRCurr(a), myRCurr(a + 1)]];

    end;

else 

    disp('It seems that you have no lines!');

end;