% EXECUTEREADYBLOCKS executes the current ready blocks.
%
% CALL:          wb.executeReadyBlocks
%         cmds = wb.executeReadyBlocks % returns a cell-array of executed
%                                      % commands
%
% M Hewitson 13-11-08
%
% $Id: executeReadyBlocks.m,v 1.7 2010/08/06 19:10:49 ingo Exp $
%
function varargout = executeReadyBlocks(wb)
  
  [cmds, rbs] = wb.parseReadyBlocks();
  
  LTPDAworkbench.executeCommands(wb, cmds);
  
  if nargout > 0
    varargout{1} = cmds;
    varargout{2} = rbs;
  end
  
end

