[FieldTrip] Emotiv headset realtime capture
r.oostenveld at donders.ru.nl
Mon Jun 6 20:32:07 CEST 2011
The interface was implemented by Stefan Klanke here at the Donders for the BrainGain project, but he is not working with us any more. He has been testing it and it worked for him. I don't have an emotiv headset myself, but think that Ali Bahramisharif (CC), one of our colleagues, is in possession of the headset that Stefan used for testing.
I checked the fieldtrip/realtime/acquisition/emotiv/emotiv2ft.cc source code, and from what I see it it requires additional software from emotiv that is not included with the fieldtrip release. See http://emotiv.com/developer/SDK/UserManual.pdf and specifically chapter 5. If that emotiv software developers kit is missing from your computer, you'll be getting errors that the compiler cannot find the edk.h, EmoStateDLL.h and/or edkErrorCode.h header files. It might also be that you need import libraries on your compile path. Please have a look in fieldtrip/realtime/acquisition/emotiv/Makefile for some further instructions.
Hope this helps. If not, Ali (CC) might be able to provide some additional information.
On 6 Jun 2011, at 14:18, Valentin J. Umbach wrote:
> Hi Zeddy,
> thanks alot for your reply.
> FieldTrip comes with a precompiled version of emotiv2ft.exe. However,
> I can't get this to connect with my hardware. I've been trying to
> change some code in emotiv2ft.cc, but I couldn't compile it using
> mingw (as suggested here:
> If you haven't worked with the Emotiv headset, this might be too
> specific. I wonder who wrote the interface to FieldTrip - someone must
> have connected the two before...
> Best, Valentin
> - Zitierten Text ausblenden -
>> Message: 4
>> Date: Wed, 1 Jun 2011 11:35:07 -0200
>> From: Zeddy He <zechuan_he at hotmail.com>
>> To: <fieldtrip at donders.ru.nl>
>> Subject: Re: [FieldTrip] Emotiv headset realtime capture
>> Message-ID: <SNT136-w474C941EFDA44370A1954EF37D0 at phx.gbl>
>> Content-Type: text/plain; charset="iso-8859-1"
>> Hi Valentin,
>> I am not entirely sure exactly what part of the process you're not sure about. I'm new to fieldtrip as well and I have never heard of emotiv until today. I have, however, been playing around with FieldTrip's realtime acquisition part for the last couple of weeks(acq2ft, AcqBuffer), and maybe able to offer some pointers in getting it set up on your system.
>> It seems that to use emotive2ft, you would have to compile it first, call upon it in matlab before starting your emotive software, and then start the emotiv software. I am not exactly sure what can read the bufferdata, though ft_realtime_signalviewer as well as viewer.exe may be good functions/programs to start off with.
>> If you're using acq2ft or Acqbuffer already for realtime acquistion from another CTF device, you could try running one of those first either by standalone or their MATLAB equivilent functions, and then run emotiv2ft in matlab without any passed in parameters(unless you didn't decide to put the buffer on localhost:1972). You also might be able to just let the function create it's own buffer by giving it a new port, and then draw from that port seperately later on.
>> Some troubles I've ran into while using FieldTrip's realtime functions include:
>> shmget() errors on linux systems
>> firewall blocking port
>> number type in-compatibility
>> and perhaps a couple others I can't recall at the moment.
>> If you think I might be capable of assisting you, let me know and I'll see if I can give you additional details.
>>> From: valentin.umbach at hu-berlin.de
>>> Date: Tue, 31 May 2011 18:51:17 +0200
>>> To: fieldtrip at donders.ru.nl
>>> Subject: [FieldTrip] Emotiv headset realtime capture
>>> Hi, I'm new to FieldTrip and I'm interested in using it to capture
>>> realtime data from the Emotiv headset using this interface:
>>> I'm not clear about how to make calls to this interface from within
>>> Matlab. Also, I would like to know if it's possible to access not just
>>> the raw EEG, but also the API output of the detection libraries
>>> (Affectiv Suite...).
>>> Any help is greatly appreciated!
>>> Best, Valentin
>>> Dipl.-Psych. Valentin J. Umbach
>>> Institut f?r Psychologie
>>> Humboldt-Universit?t zu Berlin
>>> Rudower Chaussee 18
>>> 12489 Berlin
>>> Tel. +49 30 2093 9438
>>> E-Mail: valentin.umbach at hu-berlin.de
>>> fieldtrip mailing list
>>> fieldtrip at donders.ru.nl
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
More information about the fieldtrip