Changeset 624 for trunk/src/series/time_series.m
- Timestamp:
- Apr 29, 2013, 11:28:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/time_series.m
r609 r624 65 65 66 66 %%%%%%%%%%%% STANDARD PART %%%%%%%%%%%% 67 ParamOut=[]; %default output 67 68 %% read input parameters from an xml file if input is a file name (batch mode) 68 69 checkrun=1; … … 71 72 checkrun=0; 72 73 end 73 74 ParamOut=[]; %default output 74 hseries=findobj(allchild(0),'Tag','series'); 75 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 76 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 77 78 %% define the directory for result file (with path=RootPath{1}) 75 79 OutputDir=[Param.OutputSubDir Param.OutputDirExt]; 76 80 … … 205 209 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 206 210 for index=1:nbfield 207 if checkrun 208 stopstate=get(Param.RUNHandle,'BusyAction'); 209 update_waitbar(Param.WaitbarHandle,index/nbfield) 210 else 211 stopstate='queue'; 212 end 213 if ~isequal(stopstate,'queue')% enable STOP command 214 break 211 update_waitbar(WaitbarHandle,index/nbfield) 212 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 213 disp('program stopped by user') 214 break % leave the loop if stop is ordered 215 215 end 216 216 Data=cell(1,nbview);%initiate the set Data;
Note: See TracChangeset
for help on using the changeset viewer.