Skip to content

Mentalab-hub/Mentalab-EEGLab-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

Mentalab-EEGLab-Plugin

The Mentalab EEGLab Plugin is a MATLAB library that acts as a plugin for EEGLab. Use it to import Mentalab Explore CSV and BIN files into an EEGLab structure.

Please update to the latest version of EEGLab.

Installation

To install the Mentalab EEGLab plugin, use EEGLab's Extension Manager.

Install via Extension Manager

Begin a new EEGLAB session and visit the Extension Manager under File > Manage EEGLAB extensions. The plugin is called Mentalab. You will only have to do this once.

Install manually

The Mentalab EEGLAB plugin can also be installed manually. To do this, clone or download this repository directly from GitHub. Unzip the package and move the folder mentalab-explore into the EEGLab plugins folder.

Usage

To use the Mentalab EEGLAB plugin, begin a new EEGLab session and select Import Mentalab Explore data, under File > Import Data > Using EEGLAB functions and plugins.

Your file manager will display only CSV and BIN files. Navigate to the file you wish to import, select, and open. You will be asked to name each ExG channel. If this is not important to you, select OK to continue.

Importing CSV files

If you are importing a CSV file, ensure that the current directory contains three files called:

  • <FILENAME>_ExG.csv
  • <FILENAME>_ORN.csv
  • <FILENAME>_Marker.csv

That is, each file should have the same name, but one should have suffix _ExG, one should have suffix _ORN, and the other _Marker. These files should hold ExG, motion, and marker data respectively.

If one of these files is not present, the plugin will not work. Your Mentalab Explore device will always record data for these three files.

Selecting ExG or Motion data

The Mentalab EEGLab plugin will always import ExG and motion data, regardless of which file you select.

For instance, if you select motion data myData_ORN.csv in your File Explorer, the ExG data myData_ExG.csv will also import. Both motion and ExG data will have markers linked to them.

To select your dataset (ExG.csv or ORN.csv), navigate to the EEGLab drop-down menu Datasets.

Contributing

Pull requests and feedback are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GNU General Public License v3.0