Page 1 of 1

extract event info

Posted: 23 Jul 2007, 06:44
by harsimrat
Hi

I have got some data recorded using bci2000. It contains a dat file, a prm file and sta file. Is there any way to get the event info, markers into the MATLAB header like in BIOSIG.

Thanks in advance

Posted: 23 Jul 2007, 12:37
by mellinger
Harsimrat,

use the load_bcidat mex file available in tools/mex. Alternatively, you might consider recording into GDF format, and then to use BIOSIG to read in your data.

More info about using GDF as an output format for BCI2000 is available at
http://www.bci2000.org/wiki/index.php/Data_File_Formats.

Regards,
Juergen

Posted: 16 Aug 2007, 11:16
by harsimrat
Hi Juergen

Thankyou very much for your response.
For offline analysis I have actually read the file into matlab using BCI2ASCII.exe and then loading it into matlab. I have got Feedback, Intcompute, IntertrialInterval, Recording, Rest Period, Result Code, Running, SourceTime, Stimulus Time, Target code runnr, samplenr, signal, trial nr as the variables in the matlab. It was a 32 channel recording. Dimension of signal variabel is 216136*33 double, others are 216136*1 double. Can you please help me with the meanings of these variables in terms of trigger, classlabels etc. please help. Is there any document which explains the variables when you get the file into matlab.
Thanks in advance

event markers ...

Posted: 16 Aug 2007, 15:33
by gschalk
Harsimrat,

I do not know from these variables whether you used the RJB or the D2Box task modules. However, the basic principle of the event encoding is described in implementation.pdf, which comes with BCI2000, on page 42.

Also, I believe BCI2000 import capabilities are now part of BIOSIG. There is also a EEGlab export that comes with BCI2000 and that may be of use.

Gerv

BCI2000 file for offline analysis

Posted: 29 May 2008, 16:15
by harsimrat
I am trying to use EEGLAB for data file recorded using BCI2000. I understand that there is a file import in eeglab which does this (using the option import>from other formats using the BIOSIG) and I get this following warning

Can anyone suggest how to extract HDR.EVENT.TYP from HDR.BCI2000.STATE. I gathered that the event codes can be obtained from a table (http://tinyurl.com/63kgha) but mapping them to the HDR.BCI2000.STATE remains a question.

Thanks
Harsimrat

EEGlab ...

Posted: 29 May 2008, 16:23
by gschalk
Harsimrat,

I do not have experience with the BCI2000 importer in Biosig, but you may want to check out the EEGlabImport filter that comes with the current BCI2000 distribution.

Gerv