Changeset 624 for trunk/src/series/ima_levels.m
- Timestamp:
- Apr 29, 2013, 11:28:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/ima_levels.m
r606 r624 75 75 %%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%% 76 76 %% read input parameters from an xml file if input is a file name (batch mode) 77 ParamOut=[] 77 ParamOut=[]; 78 78 checkrun=1; 79 79 if ischar(Param) … … 81 81 checkrun=0; 82 82 end 83 hseries=findobj(allchild(0),'Tag','series'); 84 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 85 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 86 87 %% subdirectory for output files 88 SubdirOut=[Param.OutputSubDir Param.OutputDirExt]; 83 89 84 90 %% root input file names and nomenclature type (cell arrays with one element) … … 89 95 FileExt=Param.InputTable(:,5); 90 96 91 %% subdirectory for output files92 SubdirOut=[Param.OutputSubDir Param.OutputDirExt];93 97 94 98 %% get the set of input file names (cell array filecell), and file indices … … 146 150 j1=[];%default 147 151 for ifile=1:nbfield 148 if checkrun 149 stopstate=get(Param.RUNHandle,'BusyAction'); 150 update_waitbar(Param.WaitbarHandle,ifile/nbfield) 151 else 152 stopstate='queue'; 152 update_waitbar(WaitbarHandle,index/nbfield) 153 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 154 disp('program stopped by user') 155 return 153 156 end 154 157 if ~isequal(stopstate,'queue') % enable STOP command
Note: See TracChangeset
for help on using the changeset viewer.