[FieldTrip] Fieldtrip on Mac
Stephen Politzer-Ahles
politzerahless at gmail.com
Fri Jan 24 12:09:25 CET 2014
Hello Hwee Ling,
Without knowing the code that's in your trial function, it's hard to
tell what the problem might be. Based on the error message, it looks
like it's not finding the .vmrk file where it's supposed to be. Do you
need to specify your own trial function? In my experience, Brain
Vision data can be imported into Fieldtrip very easily just using the
general trial function; specify cfg.filename to be the .vhdr file,
then run ft_definetrial and ft_preprocessing.
Stephen Politzer-Ahles
New York University, Abu Dhabi
Neuroscience of Language Lab
http://www.nyu.edu/projects/politzer-ahles/
> Message: 2
> Date: Fri, 24 Jan 2014 10:14:11 +0100
> From: Hwee Ling Lee <hweeling.lee at gmail.com>
> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> Subject: [FieldTrip] Fieldtrip on Mac
> Message-ID:
> <CABG7z0Rigdt6q=gr3deT2eS0aAcmx5yVcjBG8Ex7deSGKFgicQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear all,
>
> I downloaded the latest version of fieldtrip, and tried to use fieldtrip
> toolbox on Matlab R2012b, but I keep experiencing problems with reading the
> files.
>
> Here's the command I use:
>
> cfg.trialfun = 'trial_def_AV'; % self-made function located in
> D:\New_Scripts_2013\my_trialfun_name.m
> cfg.trialdef.eventtype = 'Stimulus';
> cfg.trialdef.eventvalue = 3; % 1 for AV; 2 for AN; 3 for both AV and AN
> cfg.trialdef.pre = 0.5;
> cfg.trialdef.post = 4.0;
> cfg = ft_definetrial(cfg);
>
> [data] = ft_preprocessing(cfg); % loading eeg data into memory
>
> evaluating trialfunction 'trial_def_AV'
> Error using ft_read_event (line 383)
> cannot open BrainVision marker file
>
> Error in trial_def_AV (line 4)
> event = ft_read_event(cfg.event);
>
> Error in ft_definetrial (line 169)
> [trl, event] = feval(cfg.trialfun, cfg);
>
> I'm lost, and do not know what to do. Could someone please help?
> Thanks.
>
> Cheers,
> Hweeling
More information about the fieldtrip
mailing list