Problems reading BVA data (segmented)

Markus Werkle-Bergner werkle at MPIB-BERLIN.MPG.DE
Thu Dec 15 18:28:10 CET 2005


Dear all,

I'm a beginner with fieldtrip, therefore I probably have an easy question.

I try to read in EEG-data that I already preprocessed in Brainvision
Analyser. The data is therefore already segmented. From the tutorials
and the discussion list, I understood that I should nevertheless use the
function preprocessing.m. Now my guess is that I have trouble with the
definition of trials from my data-set. I used the following script to
read the data:

cfg = []
% General settings
cfg.datafile   =
'E:\MATLAB\DATA\Oddball_TestFieldtrip\Export\mdo13136_1_HFCrej.dat';
cfg.headerfile =
'E:\MATLAB\DATA\Oddball_TestFieldtrip\Export\mdo13136_1_HFCrej.vhdr';
cfg.channel = 'all';
%Trialdefinition
cfg.trialfun = 'trialfun_brainvision';
cfg.trialdef.trgfile  =
'E:\MATLAB\DATA\Oddball_TestFieldtrip\Export\mdo13136_1_HFCrej.vmkr';
cfg.trialdef.stim  = 'HFC';
cfg.trialdef.segment  = 'no';
cfg.trialdef.timezero = 'no';
cfg.trialdef.eventtype  = 'Stimulus';
cfg.trialdef.eventvalue = 'HFC';
cfg.trialdef.prestim    = 0.500;
cfg.trialdef.poststim   = 0.600;

[cfg]=definetrial(cfg)
[raw] = preprocessing(cfg)

When I run this script, I get the following error-message:

??? Error using ==> fieldtrip-20051214\private\read_brainvision_vmrk
cannot open marker file

Error in ==> fieldtrip-20051214\private\trialfun_brainvision at 16
[stim, resp, segment, timezero] =
read_brainvision_vmrk(cfg.trialdef.trgfile);

Error in ==> definetrial at 151
    trl   = feval(cfg.trialfun, cfg);

Error in ==> FieldtripTest at 17
[cfg]=definetrial(cfg)

I checked that the *.dat, *.vhdr, and *.vmrk files are all in the
location specified in the script. I really would appreciate if one can
give me some advice.

Best regards,
Markus

P.S.: I added the *.vhdr, and *.vmrk files. Perhaps this information is
needed.

--
**************************************************************
Markus Werkle-Bergner, Dipl. Psych.
Predoctoral Research Fellow

Center for Lifespan Psychology
Max Planck Institute for Human Development
Lentzeallee 94, Room 211, D-14195 Berlin, Germany.
Phone: +49(0)30-82406-447       Fax: +49(0)30-8249939
**************************************************************



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mdo13136_1_HFCrej.vmrk
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20051215/addef6aa/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mdo13136_1_HFCrej.vhdr
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20051215/addef6aa/attachment-0001.ksh>


More information about the fieldtrip mailing list