Index: /trunk/src/find_file_series.m
===================================================================
--- /trunk/src/find_file_series.m	(revision 394)
+++ /trunk/src/find_file_series.m	(revision 395)
@@ -44,5 +44,5 @@
 %% get input root name and nomenclature type
 [tild,tild,RootFile,tild,i2_input,j1_input,j2_input,FileExt,NomType]=fileparts_uvmat(fileinput);
-fullfileinput=fullfile(RootPath,fileinput);
+fullfileinput=fullfile(RootPath,fileinput);% input file name with path
 
 %% check for particular file types: images, movies, civ data
@@ -60,10 +60,11 @@
 if strcmp(NomType,'')||strcmp(NomType,'*')||strcmp(option,'filetype')
     if exist(fullfileinput,'file')
-        [tild,RootFile]=fileparts(fileinput);% case of constant name (no indexing)
+        RootFile=fileinput;% case of constant name (no indexing)
+       % [tild,RootFile]=fileparts(fileinput);% case of constant name (no indexing)
     else
         RootFile='';
     end
 else
-    %% possibly include the first index in the root name, if there exists a   corresponding xml file
+    %% possibly include the first index in the root name, if there exists a corresponding xml file
     %   RootFileNew=RootFile;
     %     if ~isempty(regexp(NomType,['^_']))
@@ -76,5 +77,5 @@
     if ~isempty(r)
         fileinput_end=regexprep(fileinput,['^' RootFile],'');%remove RootFile at the beginning of fileinput
-        if isempty(regexp(r.tiretnum,'^_'))% if a separator '_' is not  detected
+        if isempty(regexp(r.tiretnum,'^_','once'))% if a separator '_' is not  detected
             rr=regexp(fileinput_end,'^(?<i1>\d+)','names');
         else% if a separator '_' is  detected
@@ -83,5 +84,6 @@
         if ~isempty(rr)
             RootFileNew=[RootFile rr.i1];
-            if exist(fullfile(RootPath,[RootFileNew '.xml']),'file')
+            checkpair=~isempty(regexp(NomType,'-','once'))||~isempty(regexp(NomType,'ab$','once'))||~isempty(regexp(NomType,'AB$','once'));%case of PIV results
+            if exist(fullfile(RootPath,[RootFileNew '.xml']),'file') || (checkpair && exist(fullfile(fileparts(RootPath),[RootFileNew '.xml']),'file'))
                 RootFile=RootFileNew;
                 NomTypePref=r.tiretnum;
@@ -90,5 +92,5 @@
                 j1_input=[];
                 j2_input=[];
-            end
+            end       
         end
     end
Index: /trunk/src/read_GUI.m
===================================================================
--- /trunk/src/read_GUI.m	(revision 394)
+++ /trunk/src/read_GUI.m	(revision 395)
@@ -1,4 +1,16 @@
 % -----------------------------------------------------------------------
 % --- read a GUI with handle 'handle' producing a structure 'struct'
+%
+% The output Matlab structure 'struct' contains the information displayed on
+% the GUI or a panel with handle 'handle'
+% The content of a panel with tag 'tag' is displayed as a substructure struct.(tag) (recursive use of read_GUI)
+% Output of an element with tag 'tag':
+%     'checkbox','radiobutton','togglebutton': struct.(tag)=value
+%     'edit': struct.(tag)=string,  
+%         or, if the tag is in the form by 'num_tag',
+%         struct.(tag)=str2double(string). If the result is empty the  'UserData' is taken as the default input.
+%     'listbox','popupmenu': struct.(tag)=selected string, or, if the tag is in the form by 'num_tag', struct.(tag)=str2double(string)
+%     'table': struct.(tag)=data of the table
+% 
 function struct=read_GUI(handle)
 %------------------------------------------------------------------------
@@ -55,8 +67,8 @@
                         check_input=0;
                 end
-                if check_input
+                if check_input% 
                     if index==0
                        struct.(tag)=input;
-                    else
+                    elseif ~isempty(input)
                        struct.(tag)(index)=input;
                     end
