function addData(this, runName)
    % ADDDATA Gets results and adds to table
    
    % Copyright 2016-2020 The MathWorks, Inc.
    
    if nargin < 2
        results =  this.getResults;
    else
        results = this.getResults(runName);
    end
    if ~isempty(results)
        % only add results to data manager where the result come from a live block
        validBlockResultIdx = fxptds.isResultBlockValid(results);
        this.DataManager.addResultsToTable(results(validBlockResultIdx));
    end
end