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.


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');



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


% Sets the CapControl to operate in current mode

DSSCapCtrls.Mode = 'dssCapControlCurrent';