Changeset 624 for trunk/src/series/merge_proj.m
- Timestamp:
- Apr 29, 2013, 11:28:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/merge_proj.m
r614 r624 64 64 65 65 %%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%% 66 ParamOut=[] %default output 66 67 %% read input parameters from an xml file if input is a file name (batch mode) 67 68 checkrun=1; … … 70 71 checkrun=0; 71 72 end 72 73 ParamOut=[] %default output 73 hseries=findobj(allchild(0),'Tag','series'); 74 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 75 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 76 77 %% define the directory for result file (with path=RootPath{1}) 78 OutputDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files 79 74 80 if ~isfield(Param,'InputFields') 75 81 Param.InputFields.FieldName=''; 76 82 end 77 OutputDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files78 83 79 84 %% root input file type … … 184 189 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 185 190 for index=1:NbField 186 if checkrun 187 stopstate=get(Param.RUNHandle,'BusyAction'); 188 update_waitbar(Param.WaitbarHandle,index/NbField) 189 else 190 stopstate='queue'; 191 end 192 if ~isequal(stopstate,'queue')% enable STOP command 191 update_waitbar(WaitbarHandle,index/nbfield) 192 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 193 disp('program stopped by user') 193 194 return 194 195 end
Note: See TracChangeset
for help on using the changeset viewer.