Ignore:
Timestamp:
Jun 6, 2012, 2:46:15 PM (12 years ago)
Author:
sommeria
Message:

functions updated in series for the new file configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/time_series.m

    r422 r442  
    3737if ischar(Param) && ~isempty(find(regexp('Param','.xml$')))
    3838    Param=xml2struct(Param);
     39    checkrun=0;
    3940else %  RUN case: parameters introduced as the input structure Param
    4041    hseries=guidata(Param.hseries);%handles of the GUI series
    4142    WaitbarPos=get(hseries.waitbar_frame,'Position');
     43    checkrun=1;
    4244end
    4345[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
     
    273275    filecounter=0;
    274276    for ifile=i_slice:NbSlice:nbfield
    275         stopstate=get(hseries.RUN,'BusyAction');
     277        if checkrun
     278            update_waitbar(hseries.waitbar_frame,WaitbarPos,ifile/nbfield)
     279            stopstate=get(hseries.RUN,'BusyAction');
     280        else
     281            stopstate='queue';
     282        end
    276283        errormsg='';
    277284        if isequal(stopstate,'queue')% enable STOP command
    278             update_waitbar(hseries.waitbar,WaitbarPos,ifile/nbfield) % update the waitbar
    279285            % loop on views (in case of multiple input series)
    280286            for iview=1:nbview
Note: See TracChangeset for help on using the changeset viewer.