Key up and Key down states not appearing in Matlab

This forum deals with BCI2000 configuration issues.
Locked
dinasherif
Posts: 9
Joined: 15 Sep 2011, 09:22

Key up and Key down states not appearing in Matlab

Post by dinasherif » 28 Jul 2012, 10:43

Hello All,

I want to use the key up and down states in BCI2000 as I am trying to segment portions of the EEG signal based on user key presses. I have followed the instructions concerning "logging inputs" in the wiki: http://www.bci2000.org/wiki/index.php/U ... ging_Input which are:

1) rebuild the BCI2000 including the extensions
2) include in the batch file this option: --LogKeyboard=1

Now after running a session and storing the data in a .dat file, I tried opening it in Matlab to do some offline analysis, I use the load_bcidat function, the file is loaded successfully but in the states variable I can not find the key up and down states, Why is that? and is there something I am missing in the configuration??

Waiting for a reply and thanks,

-- Dina.

mellinger
Posts: 1341
Joined: 12 Feb 2003, 11:06

Re: Key up and Key down states not appearing in Matlab

Post by mellinger » 31 Jul 2012, 09:13

Hello Dina,

for logging from the keyboard, it is not necessary to rebuild BCI2000 because the KeyboardLogger is included by default.

Please note that, when adding the --LogKeyboard=1 option to the batch file, it must be specified with the command that starts the source module. It will not work with other modules.

To make sure your configuration is correct, run the batch file, and choose View->States in the Operator module's main window menu. There, you should see whether the KeyUp and KeyDown states exist.

HTH,
Juergen

dinasherif
Posts: 9
Joined: 15 Sep 2011, 09:22

Re: Key up and Key down states not appearing in Matlab

Post by dinasherif » 02 Aug 2012, 19:04

Thanks for your reply!

Actually it worked fine with me when I used the signal generator as the source module, but when I use the EMOTIV headset, the KeyUp and KeYDown states are not defined. I am using the same batch file but only changed the source module to emotiv.exe and the parameter file, that's it.
any idea why does this happen?

mellinger
Posts: 1341
Joined: 12 Feb 2003, 11:06

Re: Key up and Key down states not appearing in Matlab

Post by mellinger » 03 Aug 2012, 10:44

This is really strange. I double-checked the configuration of the Emotiv source module, and found no difference to the SignalGenerator source module.

Could it be that you are using an older version of the Emotiv source module? Or did you compile it yourself, and accidentally removed the Keylogger component from the BCI2000FrameworkSrcModule project?

Unfortunately, the Emotiv module cannot be run without an Emotiv device, so I cannot try to reproduce your problem here.

Regards,
Juergen

Locked

Who is online

Users browsing this forum: No registered users and 0 guests