Dear Erin, <div><br></div><div>apparently your problem is that your script doesn't know where is your CNT file. </div><div>Put your file in the same folder as your script, or specify the pathway in your cfg.</div><div>
<br></div><div>Hope this helps, </div><div><br></div><div>Rodolphe.<br><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 3:52 PM, Oakman, Erin <span dir="ltr"><<a href="mailto:Erin.Oakman@nyumc.org">Erin.Oakman@nyumc.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
<br>
This code gave me an error using ft_definetrial :<br>
<br>
%define trial, FT version 20110301<br>
cfg=[];<br>
cfg.datafile='ms-01.cnt'<br>
cfg.headerfile='ms-01.cnt'<br>
cfg.trialdef.eventtype = 'trigger';<br>
cfg.trialdef.eventvalue = 2;<br>
cfg.trialdef.prestim = .5;<br>
cfg.trialdef.poststim = 1;<br>
ft_definetrial(cfg)<br>
<br>
??? Error using ==> ft_read_header at 85<br>
file or directory 'ms-01.cnt' does not exist<br>
<br>
Error in ==> trialfun_general at 55<br>
hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);<br>
<br>
Error in ==> ft_definetrial at 128<br>
    [trl, event] = feval(cfg.trialfun, cfg);<br>
<br>
<br>
I had this problem using .cnt files from human subjects or mice.<br>
I'm not sure how to get past this error.<br>
<br>
Erin<br>
<br>
------------------------------------------------------------<br>
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.<br>

=================================<br>
<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</blockquote></div><br></div>