Installing EEGLab

From Addiction Research Laboratory
Jump to: navigation, search

Note: no longer relevant to ARC setup procedure.

This page describes how to install and configure EEGLab software to work in Matlab. It also explains how to install our lab's custom EEGLab plugins.

There are two ways to install EEGLab software: through a Zipped Archive or through an SVN. Both ways are explained below.

To Download/Upgrade EEGLab software using Zipped Archive

1. Open Zipped Archive of most recent version of EEGLab. This can be obtained directly from the EEGlab website

2. Extract all files. Select Extract button in winzip to C:\Program Files\EEGLab.
If this is a first time installation for EEGLab, you will first need to create a new folder named EEGLab in the Program Files folder.
If this is an installation of an updated version of EEGLab, you should first delete all the old files inside the C:\Program Files\EEGLab folder to allow for a fresh installation of the updated version.

Continue with steps 3-7.

To Download/Upgrade EEGLab software using SVN rather than ZIP

1. Go to EEGLab Wiki and go to the Tortoise SVN website to download the correct SVN. Click their 'download page' and chose correct OS (32 or 64 bit).

2. Once Tortoise SVN is installed and computer is restarted. Open the internet (A browser must be open to use the SVN checkout). Then go to C:\Program Files\EEGLab and right click on EEGlab. Click on SVN Checkout and enter https://sccn.ucsd.edu/svn/software/eeglab, press ok.

Continue with steps 3-7.

To Install Our Lab's Custom EEGLab Plugins

3. Install Curtin EEGlab plugins so that they are recognized by the EEGLab GUI. To do this, you will need to copy all of the eegplugin_ files into the correct folder in EEGlab. The plugin files are located on our server at P:\Methods\Matlab\EEGLab\EEGLabPlugIns\. (Outside Lab Users: You can gain access to our plugin files through the web.)

You will need to copy all of these eegplugin_ files to the plugins folder for your EEGlab installation. The exact location of this folder may vary based on your current EEGLab installation but should be something like this C:\Program Files\EEGLab\eeglab2007May07_beta\plugins.
NOTE: Each time a new plugin is created, the associated eegplugin_ file will need to be copied to your EEGlab installation or the GUI will not provide a menu option for that new plugin.

4. Update/Replace the Matlab startup.m file with this modifed file so that Matlab can find the support files for the EEGLab plugins. This start-up file should be saved the Matlab installation folder in Program Files. The exact location of this file will vary installation to installation but generally should be found in C:\Program Files\Matlab\Toolbox\Local\ You will know you are in the right place if you see a sample startup file called startupsav.m

If you have never created a startup.m file for Matlab before, you can simply save the above startup.m file to this folder and you are good to go. However, if you have already created/modified this file for other purposes (this file controls the general behavior of Matlab), you may need to copy the syntax in our startup.m file and paste into your existing startup.m file.

Outside Lab Users: You will need to modify the paths listed in the startup.m file to point to the folders where you have saved the support files for our custom plugins and other tools.

Note links broken: You can copy these files from the web here:
EEGLab plugin scripts

General Matlab Tools

Psychtoolbox tools



5. Delete biosig folder. You will find this folder inside your C:\Program Files\EEGLab\ folder in ..external\fieldtrip-20090727\external\biosig. Delete it. We dont use it and it causes conflicts that generate warning messages in Matlab.

6. Restart Matlab

7. Test your installation. Type eeglab at the Matlab command prompt. The EEGlab GUI should start. If it does, you have successfully installed EEGLab.

Next at the Matlab command prompt type help pop_Rectify The help info for this custom plugin should be displayed. If instead it generates an error message, this means that Matlab cannot find the support files for our custom plugins and other tools. Revist step 4 above and check that the path to the plugin support files is correct in the startup.m file.

Page created by JJC, 2010-04-21