Changeset 705 for trunk/src/series.m
- Timestamp:
- Feb 12, 2014, 12:02:04 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r694 r705 1424 1424 %% settings of the button RUN 1425 1425 set(handles.RUN,'BusyAction','queue');% activation of STOP button will set BusyAction to 'cancel' 1426 %set(0,'CurrentFigure',handles.series); % display the GUI series1427 1426 set(handles.RUN, 'Enable','Off')% avoid further RUN action until the current one is finished 1428 1427 set(handles.RUN,'BackgroundColor',[1 1 0])%show activation of RUN by yellow color … … 1875 1874 function ActionName_Callback(hObject, eventdata, handles) 1876 1875 %------------------------------------------------------------------------ 1876 1877 1877 %% stop any ongoing series processing 1878 1878 if isequal(get(handles.RUN,'Value'),1) … … 2187 2187 %% Expected nbre of output files 2188 2188 if isfield(ParamOut,'OutputFileMode') 2189 StatusData.OutputFileMode=ParamOut.OutputFileMode;2190 set(handles.status,'UserData',StatusData)2189 StatusData.OutputFileMode=ParamOut.OutputFileMode; 2190 set(handles.status,'UserData',StatusData) 2191 2191 end 2192 2192 … … 2216 2216 %------------------------------------------------------------------------ 2217 2217 if get(handles.ActionInputView,'Value') 2218 ActionName_Callback(hObject, eventdata, handles)2218 ActionName_Callback(hObject, eventdata, handles) 2219 2219 end 2220 2220 … … 2652 2652 2653 2653 InputTable=get(handles.InputTable,'Data'); 2654 filexml=uigetfile_uvmat('pick a xml parameter file',InputTable{1,1},'.xml'); 2654 filexml=uigetfile_uvmat('pick a xml parameter file',InputTable{1,1},'.xml');% get the xml file containing processing parameters 2655 2655 if ~isempty(filexml)%abandon if no file is introduced by the browser 2656 2656 Param=xml2struct(filexml); 2657 fill_GUI(Param,handles.series) 2657 % stop current Action if button RUN has been activated 2658 if isequal(get(handles.RUN,'Value'),1) 2659 answer= msgbox_uvmat('INPUT_Y-N','stop current Action process?'); 2660 if strcmp(answer,'Yes') 2661 STOP_Callback(hObject, eventdata, handles) 2662 else 2663 return 2664 end 2665 end 2666 Param.Action.RUN=0; %deactivate the RUN button 2667 fill_GUI(Param,handles.series)% fill the elements of the GUI series with the input parameters 2658 2668 REFRESH_Callback([],[],handles)% refresh data relative to the input files 2659 2669 SeriesData=get(handles.series,'UserData'); 2660 if isfield(Param,'ActionInput') 2670 if isfield(Param,'ActionInput')% introduce parameters specific to an Action fct, for instance PIV parameters 2661 2671 set(handles.ActionInput,'Visible','on') 2662 2672 set(handles.ActionInput_title,'Visible','on') … … 2665 2675 SeriesData.ActionInput=Param.ActionInput; 2666 2676 end 2667 if isfield(Param,'ProjObject') 2677 if isfield(Param,'ProjObject') %introduce projection object if relevant 2668 2678 SeriesData.ProjObject=Param.ProjObject; 2669 2679 end 2670 2680 set(handles.series,'UserData',SeriesData) 2671 ActionName_Callback([],[],handles)2681 %ActionName_Callback([],[],handles) 2672 2682 end 2673 2683 … … 2724 2734 set(handles.status,'BackgroundColor',[1 1 0]) 2725 2735 drawnow 2726 %StatusData.time_ref=get(handles.RUN,'UserData');% get the time of launch2727 2736 Param=read_GUI(handles.series); 2728 2737 RootPath=Param.InputTable{1,1};
Note: See TracChangeset
for help on using the changeset viewer.