SwitchedObj
(read/write)
This property sets/gets the Full name of the circuit element that is being switched by the active recloser.
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;
% Compile a model
DSSText.Command = 'Compile C:\myPath\myModel.dss';
DSSReclosers = DSSCircuit.Reclosers;
% Activates the first recloser on the list
i = DSSReclosers.First;
% gets the name of the element monitored by the active recloser
myMonObj = DSSReclosers.MonitoredObj;
% gets the name of the element to be switched by the active recloser
mySWObj = DSSReclosers.SwitchedObj;