<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Markus,<div><br></div><div>the BDF (nor EDF or GDF) export function is not made to export data epochs, only continuous data. Exporting and importing continuous data worked for me. If you export data epochs, it is not going to work. We will add a warning.</div><div><br></div><div>Best,</div><div><br></div><div>Arno</div><div><br><div><div>On Jun 4, 2011, at 6:37 PM, Markus Plank wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello everybody,<div><br></div><div>When I try to export epoched data in BDF format with writeeeg (or pop_writeeeg), the resulting file has an incorrect sampling rate.</div><div><br></div><div>The dataset I'd like to apply the function to has the following structure:</div>
<div>EEG.data is a 64 (channels) X 716 (sampling points per epoch) X 300 (epochs) with a sampling rate of 512 Hz. Epoch duration therefore is 1.3984375 s.</div><div><br></div><div>I use this function call:</div><div>% writeeeg(filename, data,srate,'key','val');</div>
<div>>> writeeeg(   'export.bdf', EEG.data, 512, 'TYPE','BDF','EVENT',EEG.event);</div><div><br></div><div>When I try to open the generated file with any EEG analysis program besides EEGLAB, the following error occurs:</div>
<div>716 sampling points are arbitrarily set to have a duration of 1 second. As a result, the original relation between sample number and time point is lost.</div><div><br></div><div>Any help to resolve this problem/error is appreciated!</div>
<div><br></div><div>Thanks,</div><div>Markus</div><div><br></div><div><br>-- <br>Markus Plank, Ph.D.<br>Postdoctoral Researcher<br>Institute for Neural Computation<br>University of California San Diego<br>phone:+1-858-534-0847<br>
fax: +1-858-534-2014<br>E-Mail: <a href="mailto:mplank@ucsd.edu" target="_blank">mplank@ucsd.edu</a><br>Web: <a href="http://inc.ucsd.edu/poizner/" target="_blank">http://inc.ucsd.edu/poizner/</a><br>
</div>
_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a></blockquote></div><br></div></body></html>