view m-toolbox/classes/@sigBuilder/refreshSignalList.m @ 25:79dc7091dbbc database-connection-manager

Update tests
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

% REFRESHSIGNALLIST fills the signal list from the signal array
% 
% M Hewitson
% 
% $Id: refreshSignalList.m,v 1.2 2011/04/08 08:56:35 hewitson Exp $
% 

function refreshSignalList(mainfig)
  
  % Get handle to signal list
  sh = findobj(mainfig.handle, 'Tag', 'sigBuilderSignalList');
  
  % Get objects
  data = {};
  for jj=1:numel(mainfig.signals)
    obj = mainfig.signals(jj);
    if strcmp(obj.hist.methodInfo.sets{1}, 'From Waveform')
      type = find(obj.hist.plistUsed, 'WAVEFORM');      
    elseif strcmp(obj.hist.methodInfo.sets{1}, 'From Time-series Function')
      type = ['f(' find(obj.hist.plistUsed, 'TSFCN') ')'];
    else
      type = '';
    end
    data = [data; {type, obj.name, obj.data.nsecs, ['  ' char(obj.data.t0) '  '], true}];
  end
  
  set(sh, 'Data', data);
  set(sh, 'ColumnWidth', {65, 105, 50, 160, 40});
  
end