function updatets(h,varargin)

if nargin>=2 && ~isempty(varargin{1})
    tsnodes = setdiff(h.Srcnode.getChildren,varargin{1})
else
    tsnodes = h.Srcnode.getChildren;
end
tableData =  cell(length(tsnodes),2);
for k=1:length(tsnodes)
    tableData(k,:) = {tsnodes(k).Label,sprintf('%d',size(tsnodes(k).Timeseries.Data,2))};
end
h.Handles.tsTable.setData(tableData);