[FieldTrip] problem reading bdf-file

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Mon May 18 21:54:08 CEST 2015


Dear all,

I want to import a raw, markerless datafile (http://www.filedropper.com/1_20) by using

cfg = [];
cfg.dataset = '2.bdf';
data = ft_preprocessing(cfg)

However, I get

reading and preprocessing
error opening file: 2.bdf
One or more output arguments not assigned during call to "read_24bit".
Error in read_biosemi_bdf>readLowLevel (line 274)
  buf = read_24bit(filename, offset, numwords);
Error in read_biosemi_bdf (line 242)
      buf = readLowLevel(filename, offset, epochlength); % see below in subfunction
Error in ft_read_data (line 321)
    dat = read_biosemi_bdf(filename, hdr, begsample, endsample, chanindx);
Error in ft_preprocessing (line 578)
      dat = ft_read_data(cfg.datafile, 'header', hdr, 'begsample', begsample,
      'endsample', endsample, 'chanindx', rawindx, 'checkboundary',
      strcmp(cfg.continuous, 'no'), 'dataformat', cfg.dataformat)
Error in Untitled (line 19)
data = ft_preprocessing(cfg)

Using cfg.trialdef.eventtype = '?'; outputs "no events were found in the datafile" for ft_definetrial even for datasets with many markers. Converting to EDF+ did not help as it then says "channels with different sampling rate not supported". Specifying only one channel makes no difference. The file itself is fine (opens well in BvA).

Best,
Paul

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150518/c26fc905/attachment.html>


More information about the fieldtrip mailing list