<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hey Arjen, <br>
<br>
Brilliant!! Thanks so much for the suggestion, it worked...<br>
I'm still having to comment out line 356 (chanindx =
EDF.chansel;%(chanindx);), so something is going on but at least now
I can work with the data!<br>
<br>
Thanks again,<br>
Vitória<br>
<br>
<div class="moz-cite-prefix">On 5/10/2017 6:50 PM, Arjen Stolk
wrote:<br>
</div>
<blockquote
cite="mid:CAAiwptSktdRx19mLr_tcthx80V-mzUUWrE3QpovbMaOt8kqO=g@mail.gmail.com"
type="cite">
<div dir="ltr">Hey Vitoria,
<div><br>
</div>
<div>Quick thoughts: what is cfg.dataset here? Is it '<span
style="font-size:12.800000190734863px">/MaterSEEG04-17.edf'?
If so, please try without the '/', or specifying the full
path location. V</span>aguely recalling here that <span
style="font-size:12.800000190734863px">read_16bit fails on
statements such as '~', and perhaps also '/'. Hoping this
was a good gamble.</span></div>
<div><span style="font-size:12.800000190734863px"><br>
</span></div>
<div><span style="font-size:12.800000190734863px">Best,</span></div>
<div><span style="font-size:12.800000190734863px">Arjen</span></div>
<div><span style="font-size:12.800000190734863px"><br>
</span></div>
<div><span style="font-size:12.800000190734863px"><br>
</span></div>
<div><span style="font-size:12.800000190734863px"><br>
</span></div>
<div><span style="font-size:12.800000190734863px"><br>
</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-05-10 9:37 GMT-07:00 Vitória Piai
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:v.piai.research@gmail.com" target="_blank">v.piai.research@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi FT-ers, <br>
<br>
I'm trying to read a big .edf file (2.16GB), using a
recent version, fieldtrip-20170401. <br>
I can read the header (attached, if it's of any use).
However, when reading the data, I'm getting the following
errors.<br>
<br>
<u>- If I specify begin and end sample:</u><br>
<i>X = ft_read_data(cfg.dataset,'<wbr>begsample', 1,
'endsample', 30);<br>
<br>
</i>error opening file: /MaterSEEG04-17.edf<br>
One or more output arguments not assigned during call to
"read_16bit".<br>
<br>
Error in read_edf>readLowLevel (line 449)<br>
buf = read_16bit(filename, offset, numwords);<br>
<br>
Error in read_edf (line 401)<br>
buf = readLowLevel(filename, offset, blocksize); %
see below in subfunction<br>
<br>
Error in ft_read_data (line 683)<br>
dat = read_edf(filename, hdr, begsample, endsample,
chanindx);<br>
<br>
<u>- If I specify channel index:</u><br>
<i>X = ft_read_data(cfg.dataset,'<wbr>chanindx',chanindx);<br>
</i>Attempted to access EDF.chansel(34); index out of
bounds because numel(EDF.chansel)=1.<br>
<br>
Error in read_edf (line 356)<br>
chanindx = EDF.chansel(chanindx);<br>
<br>
Error in ft_read_data (line 683)<br>
dat = read_edf(filename, hdr, begsample, endsample,
chanindx);<i><br>
</i><br>
I can then "fix" this error by commenting out line 356 in
read_edf, which brings me back to the first error of
"read_16bit". This happens on a PC and on a Mac. Something
tells me the data isn't being read properly but I can't
figure out why. Something with mex files maybe? I couldn't
find anything similar in previous threads nor in Bugzilla,
for as far as I could see. <br>
<br>
Any thoughts anyone? I have the data on Dropbox and can
send the link if needed.<br>
<br>
Thanks loads, <br>
Vitoria <br>
</div>
<br>
______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a moz-do-not-send="true"
href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a moz-do-not-send="true"
href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip"
rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
</body>
</html>