Index: trunk/src/series/time_series.m
===================================================================
--- trunk/src/series/time_series.m	(revision 1090)
+++ trunk/src/series/time_series.m	(revision 1091)
@@ -248,4 +248,5 @@
     last_j=j1_series{1}(end);
 end
+OutputPath=fullfile(Param.OutputPath,Param.Experiment,Param.Device)
 
 %% Set field names and velocity types
@@ -305,5 +306,5 @@
     if isfield(Param,'ActionInput') && isfield(Param.ActionInput,'VarMesh')%case of histograms
         VarMesh=Param.ActionInput.VarMesh;
-    else
+    elseif isequal(Param.IndexRange.NbSlice,1)
         VarMesh=[];
         disp_uvmat('WARNING','automatic bin size for histograms, select time_series again to set the value',checkrun)
@@ -572,5 +573,5 @@
 
 %% name of result file
-OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,first_i,last_i,first_j,last_j);
+OutputFile=fullfile_uvmat(OutputPath,OutputDir,RootFile{1},FileExtOut,NomTypeOut,first_i,last_i,first_j,last_j);
 errormsg=struct2nc(OutputFile,DataOut); %save result file
 if isempty(errormsg)
@@ -581,19 +582,9 @@
 
 %% plot the time series for  (the last one in case of multislices)
-if checkrun %&& isfield(Param,'ProjObject') && strcmp(Param.ProjObject.Type,'points')
+if checkrun && isequal(Param.IndexRange.NbSlice,1)%&& isfield(Param,'ProjObject') && strcmp(Param.ProjObject.Type,'points')
     %% open the result file with uvmat (in RUN mode)
     uvmat(OutputFile)% open the last result file with uvmat
 end
-%     figure
-%     haxes=axes;
-%     plot_field(DataOut,haxes)
-%     
-%     %% display the result file using the GUI get_field
-%     hget_field=findobj(allchild(0),'name','get_field');
-%     if ~isempty(hget_field)
-%         delete(hget_field)
-%     end
-%     get_field(OutputFile,DataOut)
-% end
-
-
+
+
+
