Action
(write only)
This property is one way to set which of the Actions in the Action List is the Active Action. Sets it by index value after checking to make sure that Index is within the valid range (based on NumActions). This is a zero-based index the first element in the Action List is index 0.
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';
DSSCtrlQueue = DSSCircuit.CtrlQueue;
% Sets the active action
DSSCtrlQueue.Action = 1;