(read only)


This property returns a complex double array of Sequence Voltage for all terminals of active circuit element.


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.Lines;

% 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 complex sequence voltages

    mySeqV = DSSActiveElement.CplxSeqVoltages;

    % Formats the array as complex and polar arrays

    mySize = size(mySeqV);

    myVCmplx = []

    myVPolar = []

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

        CNum = mySeqV(a) + i*mySeqV(a + 1);

        myVCmplx = [myVCmplx;CNum];

        myVPolar = [myVPolar;[abs(CNum),angle(CNum)*180/pi]];

    end;

else 

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

end;