ByteStream
(read only)
This property returns a Byte Array containing monitor stream values. Make sure a "save" is done first (standard solution modes do this automatically).
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';
DSSMonitors = DSSCircuit.Monitors;
% saves all monitors registers
DSSMonitors.SaveAll();
% select the first monitor on the list
DSSMonitors.First;
%Request the Bytestream
Freqs = DSSMonitors.ByteStream;
% To adjust the matrix
iMonitorDataSize = typecast(Freqs(9:12),'int32');
%Adjusts the content
VIMonitor = typecast(Freqs(273:end),'single');
VIMonitor_reg = reshape(VIMonitor, iMonitorDataSize+2, [])';
% reset all monitors
DSSMonitors.ResetAll();