Frontal alpha asymmetry toolbox for EEGLAB

I would like to introduce my EEGLAB toolbox for computing frontal alpha asymmetry index. This can be useful to getting affective component in terms of its valence.

 

One of famous paper from Coan and Allen (2004) established new paradigm on Richard Davidson’s work about frontal alpha asymmetry (FAA) and its reaction to affective conditions (especially to affective disorders like anxiety or depression).

There is no other tool (as far as I know) that would help you to compute frontal alpha asymmetry. First what is it anyway?

Continue reading “Frontal alpha asymmetry toolbox for EEGLAB”

Advertisements

Send EEG triggers from OpenSesame via parallel port

For my all EEG paradigms I need to send marks (triggers) via parallel port to EEG to make a stamp when stimuli occurred and which one was that.

In my lab we use Biosemi ActiveTwo 64 active electrode system which can work only with 0-255 range of values. It means you can tag only 255 event types in your recording.

Continue reading “Send EEG triggers from OpenSesame via parallel port”

Start and stop Biosemi recording by EEG trigger

It comes pretty handy to have start and stop of EEG recording by stimulation software. I happened to me and my colleagues pretty often to run ActiveView software for acquisition of EEG signal, then prepare participant and run experiment. Then (in better case) we noticed that recording was not un-paused after a couple of minutes or (the worse scenario) after experimented ends.
At that time, I learned about EGI E-prime package for initialize recording and stop recording. After couple of tries it came to my mind that this is killer feature 🙂

Edit config file

After some research at Biosemi forum I found that is possible to edit a configuring file Default.cfg which stores many useful things.
First of all you need to locate this config file which is stored at your Biosemi software installation (where you have simply ActiveView programm). It is called Default.cfg and you need to open as text file (I really do recommend you Atom or Notepad++).
Then you need to find two entries:

PauseOff=1
PauseOn=-1

And change it to your desired value:

PauseOff=254
PauseOn=255

So from now on if you send EEG trigger with value 254 Biosemi starts to record a session (you have to first click start button which initialize recording but still it is paused). Then when you want to stop recording you just send EEG trigger with value of 255.
Of course you can set those values as you want to for example 1 and 2 but it usually doesn’t make so much sense.

List directory and find files by extension or containg string in MATLAB

Time to time researcher needs to find all files which are in specified directory. And time to time he or she needs to find very specific files.

Those can be specified by file extensions e.g., find all *.mp3 or *.set file in my project folder. Maybe it should be useful to find all files that meets specified experimental condition e.g., find all epoched data in folder. And very rare it is needed to access all files which are epoched and they are *.set at the same time.

Continue reading “List directory and find files by extension or containg string in MATLAB”

Moving objects in E-Prime 2 while key is pressed

Have you ever wanted to force E-Prime to constantly move some object on the screen while pressing specific key on your keyboard? I went trough nearly all E-Prime forums and tip & tricks articles. While nothing helped me to achieve this relatively easy task. Since I went trough the whole coding process I can share my experiences with you.

Continue reading “Moving objects in E-Prime 2 while key is pressed”