(method)


This method forces all Meters and Monitors to take a sample.


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;

% Solves the circuit in snap mode (meters and monitors don't sample automatically)

DSSText.Command = 'Solve mode=snap';

% Forces meters and monitor to take a sample

DSSCircuit.Sample();