[Eeglablist] problems with sampling rate in writeeeg export function (BDF format)

Arnaud Delorme arno at ucsd.edu
Tue Jun 21 06:40:05 PDT 2011


Dear Markus,

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.

Best,

Arno

On Jun 4, 2011, at 6:37 PM, Markus Plank wrote:

> Hello everybody,
> 
> When I try to export epoched data in BDF format with writeeeg (or pop_writeeeg), the resulting file has an incorrect sampling rate.
> 
> The dataset I'd like to apply the function to has the following structure:
> 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.
> 
> I use this function call:
> % writeeeg(filename, data,srate,'key','val');
> >> writeeeg(   'export.bdf', EEG.data, 512, 'TYPE','BDF','EVENT',EEG.event);
> 
> When I try to open the generated file with any EEG analysis program besides EEGLAB, the following error occurs:
> 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.
> 
> Any help to resolve this problem/error is appreciated!
> 
> Thanks,
> Markus
> 
> 
> -- 
> Markus Plank, Ph.D.
> Postdoctoral Researcher
> Institute for Neural Computation
> University of California San Diego
> phone:+1-858-534-0847
> fax: +1-858-534-2014
> E-Mail: mplank at ucsd.edu
> Web: http://inc.ucsd.edu/poizner/
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20110621/5bef77e4/attachment.html>


More information about the eeglablist mailing list