[FieldTrip] Problem streaming realtime data from BrainVision

Yang, Winson Winson.Yang at ttu.edu
Sun Jun 30 17:57:32 CEST 2019


Hello Fieldtrip experts!

I am running a neurofeedback experiment. I am using BrainVision to record my signals, and MATLAB FIELDTRIP to provide the feedback using sounds. I am trying to connect BrainVision to MATLAB, but I keep having problems streaming the signals in matlab.
This is what I have done:

In one matlab session:
%% Add paths
addpath('C:\Program Files\MATLAB\packages\fieldtrip-20190419');
addpath('C:\Program Files\MATLAB\packages\RDA_Client_Matlab64');
cd('C:\Program Files\MATLAB\packages\RDA_Client_Matlab64');
%% Enable online tracking
ft_defaults

cfg                = [];
cfg.host           = 'yantang-THINK'; % of computer running the recorder software (default = 'eeg002')
cfg.port           = 51244; % TCP port to connect to (default = 51244)
cfg.channel        = 'all'; % see FT_CHANNELSELECTION (default = 'all')
cfg.feedback       = 'no'; % 'yes' or 'no' (default = 'no')

cfg.target.datafile      = 'buffer://localhost:1972'; % target destination for the data (default = 'buffer://localhost:1972')
cfg.target.eventfile     = 'buffer://localhost:1972'; % target destination for the events (default = 'buffer://localhost:1972')

ft_realtime_brainampproxy(cfg)

And this is the output:
Loaded pnet MEX-file for the tcp/udp/ip-toolbox Compiled @ May 18 2012 09:12:16
Version  2.0.5  2003-09-16
Copyright (C) Peter Rydesäter, Sweden, et al. , 1998 - 2003
GNU General Public License, se license.txt for full license notis.
You are allowed to (dynamicaly) link this file with non-free code.

   http://www.rydesater.com

===============================================================================

connection establised with host 127.0.0.1 on port 51244


In another matlab session:
cfg                = [];
cfg.blocksize      = 1;                            % seconds
cfg.dataset        = 'buffer://localhost:1972';    % where to read the data
ft_realtime_signalviewer(cfg)

And this is the output:
Warning: could not read header from buffer://localhost:1972, retrying in 1 second
Warning: could not read header from buffer://localhost:1972, retrying in 1 second
Warning: could not read header from buffer://localhost:1972, retrying in 1 second

I'm not sure why the signal is not going through.
Does anyone have any idea?


Regards,
Winson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190630/0508b832/attachment-0001.html>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202


More information about the fieldtrip mailing list