<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<div>
<div dir="ltr">
<div dir="ltr">
<div><font color="#000000">Dear all,</font><br>
</div>
</div>
</div>
</div>
<br>
<div>
<div dir="ltr">
<div dir="ltr">
<div>I want to import a raw, markerless datafile (<a href="http://www.filedropper.com/1_20" target="_blank">http://www.filedropper.com/1_20</a>) by using</div>
<div><br>
</div>
<div>
<div><b>cfg = []; </b></div>
<div><b>cfg.dataset = '2.bdf';</b></div>
<div><b>data = ft_preprocessing(cfg)</b></div>
</div>
<div><br>
</div>
<div>However, I get </div>
<div><br>
</div>
<div>
<div><b>reading and preprocessing</b></div>
<div><b>error opening file: 2.bdf</b></div>
<div><b>One or more output arguments not assigned during call to "read_24bit".</b></div>
<div><b>Error in read_biosemi_bdf>readLowLevel (line 274)</b></div>
<div><b>  buf = read_24bit(filename, offset, numwords);</b></div>
<div><b>Error in read_biosemi_bdf (line 242)</b></div>
<div><b>      buf = readLowLevel(filename, offset, epochlength); % see below in subfunction</b></div>
<div><b>Error in ft_read_data (line 321)</b></div>
<div><b>    dat = read_biosemi_bdf(filename, hdr, begsample, endsample, chanindx);<br>
</b></div>
<div><b>Error in ft_preprocessing (line 578)</b></div>
<div><b>      dat = ft_read_data(cfg.datafile, 'header', hdr, 'begsample', begsample,</b></div>
<div><b>      'endsample', endsample, 'chanindx', rawindx, 'checkboundary',</b></div>
<div><b>      strcmp(cfg.continuous, 'no'), 'dataformat', cfg.dataformat)</b></div>
<div><b>Error in Untitled (line 19)</b></div>
<div><b>data = ft_preprocessing(cfg) </b></div>
</div>
<div><br>
Using <b>cfg.trialdef.eventtype = '?';</b> outputs "no events were found in the datafile" for
<b>ft_definetrial</b> 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).</div>
<div><br>
</div>
<div>Best, </div>
<div>Paul</div>
</div>
</div>
</div>
</div>
<br>
</body>
</html>