Changeset 705 for trunk/src/series.m


Ignore:
Timestamp:
Feb 12, 2014, 12:02:04 AM (10 years ago)
Author:
sommeria
Message:

several bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r694 r705  
    14241424%% settings of the button RUN
    14251425set(handles.RUN,'BusyAction','queue');% activation of STOP button will set BusyAction to 'cancel'
    1426 %set(0,'CurrentFigure',handles.series); % display the GUI series
    14271426set(handles.RUN, 'Enable','Off')% avoid further RUN action until the current one is finished
    14281427set(handles.RUN,'BackgroundColor',[1 1 0])%show activation of RUN by yellow color
     
    18751874function ActionName_Callback(hObject, eventdata, handles)
    18761875%------------------------------------------------------------------------
     1876
    18771877%% stop any ongoing series processing
    18781878if isequal(get(handles.RUN,'Value'),1)
     
    21872187%% Expected nbre of output files
    21882188if 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)
    21912191end
    21922192
     
    22162216%------------------------------------------------------------------------
    22172217if get(handles.ActionInputView,'Value')
    2218 ActionName_Callback(hObject, eventdata, handles)
     2218    ActionName_Callback(hObject, eventdata, handles)
    22192219end
    22202220
     
    26522652
    26532653InputTable=get(handles.InputTable,'Data');
    2654 filexml=uigetfile_uvmat('pick a xml parameter file',InputTable{1,1},'.xml');
     2654filexml=uigetfile_uvmat('pick a xml parameter file',InputTable{1,1},'.xml');% get the xml file containing processing parameters
    26552655if ~isempty(filexml)%abandon if no file is introduced by the browser
    26562656    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
    26582668    REFRESH_Callback([],[],handles)% refresh data relative to the input files
    26592669    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
    26612671        set(handles.ActionInput,'Visible','on')
    26622672        set(handles.ActionInput_title,'Visible','on')
     
    26652675        SeriesData.ActionInput=Param.ActionInput;
    26662676    end
    2667     if isfield(Param,'ProjObject')
     2677    if isfield(Param,'ProjObject') %introduce projection object if relevant
    26682678        SeriesData.ProjObject=Param.ProjObject;
    26692679    end
    26702680    set(handles.series,'UserData',SeriesData)
    2671     ActionName_Callback([],[],handles)
     2681    %ActionName_Callback([],[],handles)
    26722682end
    26732683
     
    27242734    set(handles.status,'BackgroundColor',[1 1 0])
    27252735    drawnow
    2726     %StatusData.time_ref=get(handles.RUN,'UserData');% get the time of launch
    27272736    Param=read_GUI(handles.series);
    27282737    RootPath=Param.InputTable{1,1};
Note: See TracChangeset for help on using the changeset viewer.