<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="FR" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Dear FieldTrip community,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying to merge two blocks of (so far) continuous data. The recordings are the same in the sense that they have the same number of channels. The files contain events, but I have not defined trials yet. (as a side note, I tried merging
 with defined trials in both blocks, but the issue is the same)</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To do so, after I transformed my .set files into a fieldtrip structure, I tried using ft_appenddata.</p>
<p class="MsoNormal">Even though the files are separated, they should contain the same events, so I kept the option
<i>cfg.keepsampleinfo = 'yes'</i>.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In appearances, the obtained structure is what I expected (twice as much data as a single file). But when I try to visualize the raw data with ft_databrowser, I get the following error:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><i>Error using ft_fetch_data<o:p></o:p></i></p>
<p class="MsoNormal"><i>some of the requested samples occur twice in the data and have conflicting values<o:p></o:p></i></p>
<p class="MsoNormal"><i><o:p> </o:p></i></p>
<p class="MsoNormal"><i>Error in ft_databrowser>redraw_cb (line 1807)<o:p></o:p></i></p>
<p class="MsoNormal"><i>  dat = ft_fetch_data(opt.orgdata, 'header', opt.hdr, 'begsample', begsample, 'endsample', endsample, 'chanindx', chanindx, 'allowoverlap', cfg.allowoverlap, 'skipcheckdata', true);<o:p></o:p></i></p>
<p class="MsoNormal"><i><o:p> </o:p></i></p>
<p class="MsoNormal"><i>Error in ft_databrowser (line 810)<o:p></o:p></i></p>
<p class="MsoNormal"><i>redraw_cb(h);<o:p></o:p></i></p>
<p class="MsoNormal"><i><o:p> </o:p></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">From my understanding (<i>'the trials will be concatenated'</i>, from documentation), I expect ft_appenddata to merge the data as data1 followed by data2 as a big continuous data file. Is there a misunderstanding of how ft_appenddata actually
 works? Or is it a sign for a design issue of my experiment?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you very much for your help.</p>
<p class="MsoNormal">Best regards,</p>
<p class="MsoNormal">Éva<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>