Page 1 of 2

Emotiv amd BCI2000

Posted: 19 Aug 2011, 07:26
by Kaspars
Hi,
My name is Kaspars, and I'm new in this forum.
I have bought Emotiv EPOC Research SDK to take same experiments and decided to use BCI2000. I'm very new in this software, so I hope someone could help me.
Now I will describe what I'm doing:
- I have insatlled all Emotiv EPOC Research SDK software and everything seems to work fine.
- I have downloaded and installed BCI2000Setup and BCI2000Contrib
- When I open BCILauncher I have interface that looks like this:
Image
- I have read BCI2000 fast tutorial, so I run batch\CursorTask_SignalGenerator, where I Conig all like it's said here:
http://www.bci2000.org/wiki/index.php/C ... ons:Emotiv

And it looks like this:
http://www.bildez.lv/bildes/loonydevil/ ... 751983.png
- After ther I Set Conig and Start!
This is what I get:
http://www.bildez.lv/bildes/loonydevil/ ... 751979.png

1. So I don't understand wky all signals in the left are the same? And what is showing the lower picture?
2. Why I have error in the right side of the picture?
3. Do I need to configure something else without SourceCh, SamplingRate, SampleBlockSize, ChannelNames, SourceChOffset, SourceChGain?

Also please inform me what else I can do with BCI2000? What options it provide?
Thanks
Have a nice day.
Kaspars

Re: Emotiv amd BCI2000

Posted: 19 Aug 2011, 08:42
by mellinger
1. So I don't understand wky all signals in the left are the same?
You may run BCI2000 by either using BCI2000Launcher, or from a batch file as described in the BCI2000 tour. The two ways are unrelated to each other, i.e. what you select in BCI2000Launcher does not affect what gets started when running a batch file. Also, when in BCI2000Launcher, you should not select both the SignalGenerator and the Emotiv source module because then only the SignalGenerator source module will run.

Thus, you were running BCI2000 with the SignalGenerator module, which generates a sinusoidal test signal. In your configuration, it is the same on all channels. To run BCI2000 from a batch file with the Emotiv source module, you need first to create a copy of the desired batch file, and then modify the line starting the source module such that it starts the Emotiv source module.

It also appears you did not load a parameter file as it is described in the BCI2000 tour. After starting BCI2000, first load the appropriate parameter file from parms/examples, then modify Emotiv source module parameters as described on the Emotiv wiki page. Then, save the modified set of parameters under a new name to use them later on. Alternatively, you may use the "Configure Save" button in the parameter dialog to create a parameter file that only contains Emotiv specific parameters, so later on you may load any appropriate parameter file first, and then make the configuration Emotiv compatible by loading your Emotiv source parameter file on top of the existing parameter file.
And what is showing the lower picture?
The lower window is the timing window, which is described at
http://www.bci2000.org/wiki/index.php/U ... nce:Timing
2. Why I have error in the right side of the picture?
The error tells you that your machine is too slow to properly run BCI2000 in its current configuration. Possible causes are
* You are running BCI2000 in a virtual machine,
* other applications running in the background are using up memory or CPU time.

3. Do I need to configure something else without SourceCh, SamplingRate, SampleBlockSize, ChannelNames, SourceChOffset, SourceChGain? Also please inform me what else I can do with BCI2000? What options it provide?

I suggest that you run one of the tutorials provided with BCI2000. First, take the BCI2000 tour at
http://www.bci2000.org/wiki/index.php/U ... I2000_Tour
if you have not already finished that.
Second, go to
http://www.bci2000.org/wiki/index.php/U ... I_Tutorial
and
http://www.bci2000.org/wiki/index.php/U ... I_Tutorial
to learn how to perform BCI experiments with BCI2000.

Finally, there is the BCI2000 book which provides additional information about BCI2000 and Brain-Computer Interfacing in general.

Regards,
Juergen

Re: Emotiv amd BCI2000

Posted: 19 Aug 2011, 08:46
by griffin.milsap
Kaspars,

If you right click and edit the CursorTask_SignalGenerator batch you used to start the system, you'll see that it starts SignalGenerator.exe and not Emotiv.exe. This is why your input looks all the same. Also, it looks like you have a few commas in your ChannelNames parameter - which apparantly didn't error, but is nonstandard. (you should just use spaces to separate items in a list)

The last issue you saw was the sytem telling you that it consistently took your computer longer to process the signal and display the output than it takes to generate the next sample block. When your computer gets back-logged like this, the system no longer performs in real time, which we check for and stop the system. What are your system specs?

-Griff

Edit, it looks like Juergen beat me to the answer. I'll still post for great justice.

Re: Emotiv amd BCI2000

Posted: 22 Aug 2011, 07:56
by Kaspars
Hi Juergen and Griff,
Thanks for your quick answer :) Oki, now I understand, I take Emotiv from "Other" and put it to "Signal Source". After That I choose P3SignalProcessing and P3Speller. Then I press "Launch". After That I press Config, where I load parameters from C:\Program Files (x86)\BCI2000\parms\examples\P3Speller_Menus where I modify "Source" like it is said in Contributions:Emotiv. Then I Set Config and start. Here you can see what I get:
Image

I don't know why but ir write very fast and with a lot of mistakes and I don't understand how to train this system.

Image

In this picture you can see, that there are 12 channels, but it shoud be 14! why? Where are 2 channels?

Image

ERP seems to work fine.

Image

And Timing works well, although I don't know what it shows and what it means.

So how does it looks now? Everythink ok?

Best regards,
Kaspars

Re: Emotiv amd BCI2000

Posted: 22 Aug 2011, 11:37
by mellinger
I don't know why but ir write very fast and with a lot of mistakes and I don't understand how to train this system.
Operating a BCI is a rather complicated thing. BCI2000 tries to make it easy for beginners, but there is still a lot to learn. In order to understand this system, please follow the BCI2000 P300 tutorial at
http://www.bci2000.org/wiki/index.php/U ... I_Tutorial
In this picture you can see, that there are 12 channels, but it shoud be 14! why? Where are 2 channels?
In the ERP display, each signal corresponds to a single stimulus, and it displays the ERP elicited by that stimulus. In a P3Speller, there are typically up to 12 stimuli (6 rows and 6 columns), so there are 12 signals displayed in the ERP display. Data for these signals are all taken from the same channel, which is channel 1. To display ERP waveforms from other channels, enter a list of channels into the TargetERPChannel parameter (http://www.bci2000.org/wiki/index.php/U ... ERPChannel).
ERP seems to work fine.
No, there are no ERP curves displayed in the ERP display. Please take the P300 tutorial to learn what ERP curves should look like.
And Timing works well, although I don't know what it shows and what it means.
As I suggested in my previous post, please read the following page to learn about the timing display: http://www.bci2000.org/wiki/index.php/U ... nce:Timing

Please understand that you need to work through the indicated introductory material (see my first post, and the links in this post) before we can provide you with further help on this forum. Of course, we will try to help you with any issues that arise while working through that material.

Juergen

Re: Emotiv amd BCI2000

Posted: 25 Aug 2011, 10:22
by Kaspars
Hi Juergen,

Thnaks for helping me :) I have read BCI2000 P300 Speller tutorial, but there are a lot of things I don't understand. First. I have 2 monitors and I have set that in one of them are showing letter matrix and in other I have all BCI2000 interface. After that I don't understand what is siad in tutorial:

Connect your amplifier to the computer, and turn it on.

Does it mean, I must connect my emotiv and turn it on? Becouse in next step there is said:

Start BCI2000 by double-clicking batch\P3Speller_<your amplifier>.bat.

But I don't have such a file - P3SpellerEmotiv.bat ???

Afteher that, there is said:

Click Load Parameters, and load parms/p3_tutorial/InitialP3Session.prm. Then, load parms/fragments/amplifiers/<YourAmplifier>.prm.

Do I have to load parms/p3_tutorial/InitialP3Session.prm and set in source like it's said in Contributions:Emotiv?

Oki, next questions I will write tomorrow :)

Best regards,
Kaspars

Re: Emotiv amd BCI2000

Posted: 25 Aug 2011, 13:06
by mellinger
Hi,

there is now a note in the tutorials that describe what to do when you are using an amplifier that is not part of the BCI2000 core distribution, i.e. with a contributed source module.

Regards,
Juergen

Re: Emotiv amd BCI2000

Posted: 26 Aug 2011, 05:17
by Kaspars
Hi,

1. I don't understand this line:
Click Save Parameters, and change the copy_spell portion of this parameter file name to free_spell

at this tutorial:
http://www.bci2000.org/wiki/index.php/U ... on_Session

Can you please tell me what to do?

2. Also After tutorial I have error like this:
2011-08-26T12:13:44 - LinearClassifier::Preflight: Element (bin) specification in
Classifier(1,input element (bin))=332
exceeds number of input elements.

3. What I must write in Source - TransmitChlist? All my 14 channels? 1 2 3 4 5 6 7 8 9 10 11 12 13 14?

Best regards,
Kaspars

Re: Emotiv amd BCI2000

Posted: 26 Aug 2011, 07:01
by mellinger
Hi,

1) I changed the tutorial, so it should be clear now. Thanks for mentioning it.
2) As stated in the tutorial, you should enter "332ms", not "332".
3) Yes, you should enter all your channels into TransmitChList, and save that in your parameter specific configuration file.

Regards,
Juergen

Re: Emotiv amd BCI2000

Posted: 26 Aug 2011, 08:14
by Kaspars
I still don't understand:
Click Save Parameters, and change the CopySpelling portion of this parameter file name to FreeSpelling

There is said just change filme name? Whitch can be any word, for example, KKK.prm?

Here is some picture from my experiments:

I used OfflineAnalysis I got this:
Image

After that I fill the matrix:
Image
Is this matrix correct?

After that I Set config, start and get this:
Image
Maybe you can tell me where is problem? Becouse I can't find. I would like to get the picture that was before:
Image

Thanks for help, I really appreciate it :)

Best,
Kaspars

Re: Emotiv amd BCI2000

Posted: 27 Aug 2011, 05:16
by mellinger
I still don't understand:
Click Save Parameters, and change the CopySpelling portion of this parameter file name to FreeSpelling
There is said just change filme name? Whitch can be any word, for example, KKK.prm?
When you follow the tutorial, then you will save a parameter file with CopySpelling in its name. After that, you are asked to make some changes to that configuration, and save it again, this time with FreeSpelling in its name rather than CopySpelling.
Here is some picture from my experiments:
I used OfflineAnalysis I got this:
That looks actually pretty good. There is a P300 response clearly visible in the average wave forms.
After that I fill the matrix:
As described in the tutorial, and as I wrote in my previous post, you need to enter 332ms, not 332. This means that you need to enter the letters "m" and "s" after the number "332".

Code: Select all

After that I Set config, start and get this:
As described in the tutorial, you need to load the parameter file from the calibration session before editing the LinearClassifier parameter. Please do follow each single step in the tutorial exactly as is written there.

Juergen

Re: Emotiv amd BCI2000

Posted: 30 Aug 2011, 07:38
by Kaspars
mellinger wrote: As described in the tutorial, you need to load the parameter file from the calibration session before editing the LinearClassifier parameter. Please do follow each single step in the tutorial exactly as is written there.
Can you please copy for me link and show me exact line where it's written? I can't find. Thanks.

Best,
Kaspars

Re: Emotiv amd BCI2000

Posted: 30 Aug 2011, 12:41
by mellinger
Go to
http://www.bci2000.org/wiki/index.php/U ... meter_file
The second dot below "Creating a subject-specific parameter file" says:
Click Config, and load the configuration file you saved previously
This is where you load the parameter file from the calibration session.

I changed the wording so it should be clearer now.

Best,
Juergen

Re: Emotiv and BCI2000

Posted: 13 Sep 2011, 21:24
by Kalvin
I am following this tutorial-like thread to perform a P300 spelling session on the EPOC.

I keep on running into these errors:
2011-09-14T03:17:01 - EmotivADC::Preflight: Timeout occurred while waiting for device to become ready.
2011-09-14T03:17:01 - EmotivADC::Preflight: Cannot retreive Emotiv sampling rate.
The configuration is identical to the one given on the wiki pages.

Re: Emotiv amd BCI2000

Posted: 14 Sep 2011, 09:23
by mellinger
Does the EPOC work with the Emotiv software?
Also, make sure that the Emotiv software is not running when you start BCI2000.

Juergen