SwitchedTerm
(read/write)
This property sets/gets the terminal number of the switched object for 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 switched by the active recloser
mySWObj = DSSReclosers.SwitchedObj;
% gets the switched terminal, if 2 force it to 1 (for the example)
if DSSReclosers.SwitchedTerm == 2,
DSSReclosers.SwitchedTerm = 1;
end