IsOpen
(read only)
This method returns a boolean indicating if the specified terminal and, optionally, phase is open.
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,
% Check if the active element is open or closed at terminal 1, phase 1
if DSSActiveElement.IsOpen(1,1),
disp('Open!');
else
disp('Closed');
end;
else
disp('It seems that you have no lines!');
end;