[FieldTrip] ft_realtime_average and ft_realtime_selective_average

Hamza Fawzi Altakroury (Student) hamzaf at sabanciuniv.edu
Mon May 14 15:57:05 CEST 2012


Hello,

I am doing realtime processing.

I wrote the following two simple codes:

cfg = [];
cfg.dataset = 'buffer://localhost:1972';
cfg.channel = {'A1'};
cfg.trialfun = 'trialfun_general';
cfg.trialdef.eventtype = 'STATUS';
cfg.trialdef.eventvalue = 1;
cfg.trialdef.prestim = 0;
cfg.trialdef.poststim = 1;

 ft_realtime_average(cfg)

And

cfg = [];
cfg.dataset = 'buffer://localhost:1972';
cfg.channel = {'A1'};
cfg.trialfun = 'trialfun_general';
cfg.trialdef.eventtype = 'STATUS';
cfg.trialdef.eventvalue = 1;
cfg.trialdef.prestim = 0;
cfg.trialdef.poststim = 1;

 ft_realtime_selectiveaverage(cfg)


In the first no error appeared but also I did not get a result (the
generated figure was empty).

In the second I got the following message:

??? Error using ==> ft_read_data at 243
cannot read data before the begin of the file

Error in ==> ft_realtime_selectiveaverage at 94
    dat = ft_read_data(cfg.datafile, 'header', hdr, 'begsample', begsample,
'endsample', endsample, 'chanindx', chanindx, 'checkboundary', false);

Error in ==> online2 at 10
 ft_realtime_selectiveaverage(cfg)


Why I get so?

Thank you

-- 
Hamza Fawzi Altakroury
Graduate student - MA
Faculty of Engineering and Natural Sciences
Sabancı University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120514/14bbb7a0/attachment-0001.html>


More information about the fieldtrip mailing list