BusNames
(read/write)
This property set/get a variant array of strings. Get Bus definitions to which each terminal is connected. 0-based array.
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;
DSSLoads = DSSCircuit.Loads;
% Compile a model
DSSText.Command = 'Compile C:\myPath\myModel.dss';
DSSActiveElement = DSSCircuit.ActiveCktElement;
% Sets the first load of the list as the active element
if DSSLoads.First > 0,
myBuses = DSSActiveElement.BusNames;
else
disp('It seems that you have no loads!');
end;