Winding
(read/write)
This property sets/gets the number of the winding of the transformer element that the RegControl is monitoring. 1 or 2, typically. Side Effect: Sets TAPWINDING property to the same winding.
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';
DSSRegCtrls = DSSCircuit.RegControls;
% Activates the first RegControl of the list
i = DSSRegCtrls.First;
% Gets the name of the transformer controlled by the active RegControl
myXfmr = DSSRegCtrls.Transformer;
% gets the number of winding monitoring for the transformer controlled by the active RegControl
myWdg = DSSRegCtrls.Winding;