(read/write)


This property get/set the control mode in which the active CapControl is operating. If defined as string, it can be one of the following:


- dssCapControlCurrent

- dssCapControlVoltage

- dssCapControlKvar

- dssCapControlTime

- dssCapControlPF


Otherwise it can be a number between 0 and 4 following the same order presented above.


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';

DSSCapCtrls = DSSCircuit.CapControls;

% Sets the first CapControl as the active Obj

DSSCapCtrls.First;

% Sets the CapControl to operate in current mode

DSSCapCtrls.Mode = 'dssCapControlCurrent';