(read/write)


This property can be used to get/set the Emergency Ampere Rating for the active element (if it is a PD 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 emergency amp rating of the active line

    disp(num2str(DSSActiveElement.EmergAmps));

else 

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

end;