> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/sensor-setup/eeg/emotiv/how-to-connect-emotiv-headset-with-imotions-using-emotivpro-through-lab.md).

# How to connect Emotiv Headset with iMotions using EmotivPRO through Lab Streaming Layer (LSL)

Stream raw EEG, performance metrics and quality data from an Emotiv EPOC+ into iMotions Lab through EmotivPRO and Lab Streaming Layer (LSL).

Lab streaming layer is a system for synchronizing streaming data for live analysis or recording. LSL is a good way to send your EEG hardware stream to applications that can record or manipulate the data, such as iMotions. The following instructions show you how to enable the LSL settings in both EmotivPRO and iMotions. Please refer to the prerequisites listed below for fully using LSL transmission.

***NOTE on Emotiv LSL and running EEG R Notebooks:*** *You can still collect Emotiv data in iMotions through LSL without a Device profile, and features like data visualizations in iMotions replay window, Sensor Data exports will still be applicable. However, you will NOT be able to run any R Notebooks in a later signal processing stage.*

*Starting from iMotions version 9.1.6, you will be able to collect Emotiv data through LSL and run the R Notebooks in a later signal processing stage. However, you need to follow specific steps ("Adding the Device profile") **before** your data collection to enable this. Please follow* [*this article*](https://help.imotions.com/lab/sensor-setup/eeg/how-to-collect-eeg-data-with-an-lsl-device-in-imotions.md) *on the detailed guide.*

This article contains:

* [*Prerequisites*](#prerequisites)
* [*\[1\] Getting started in EmotivPRO*](#id-1-getting-started-in-emotivpro)
* [*\[2\] Finalizing LSL settings in iMotions*](#id-2-finalizing-lsl-settings-in-imotions)
* [*\[3\] Run iMotions R Notebooks on Emotiv raw EEG data*](#id-3-run-imotions-r-notebooks-on-emotiv-raw-eeg-data)

## Prerequisites

1. iMotions 9.1.6 or newer
2. EmotivPRO installed in your computer and the correct Emotiv license with Lab Streaming Layer (LSL) transmission (EmotivPRO paid license required) (please refer to the updated list of Emotiv licenses here <https://www.emotiv.com/emotivpro/>)
3. Emotiv EEG device

***NOTE on Emotiv Headset**: Please check* [*here*](https://labstreaminglayer.readthedocs.io/info/supported_devices.html) *for a list of LSL-enabled devices. Please be aware that until now, iMotions has only tested Emotiv EPOC+, and testing is needed if you own another Emotiv headset (E.g., Emotiv EPOC Flex). Please consult your Customer Success Manager if you have more questions.*

***NOTE on iMotions version number**: Starting from iMotions 9.0.6, you will be able to collect Emotiv EEG data through LSL in iMotions. Starting from iMotions 9.1.6, you will be able to collect Emotiv data through LSL in iMotions **and** run the R Notebooks in a later signal processing stage in iMotions. However, you need to follow specific steps ("Adding the Device profile") **before** your data collection to enable this. Please follow* [*this article*](https://help.imotions.com/lab/sensor-setup/eeg/how-to-collect-eeg-data-with-an-lsl-device-in-imotions.md) *on the detailed guide.*

## \[1] Getting started in EmotivPRO

1. Place the Emotiv EEG headset on top of a participant accordingly. Activate Bluetooth® options in your computer. Turn on Emotiv EEG headset and connect it through Bluetooth®
2. Open EmotivPRO software and click the “Connect headset” button on the top part of the screen to establish connection. Click the “Continue” button .
3. Then, make sure that the EEG data is correctly visualized in EmotivPRO. Specifically, you will want to make sure that there is already good **Contact quality** and **EEG quality** in EmotivPRO software. Good Contact Quality and EEG Quality is when the electrode positions in the picture below turn green - If you observe orange or red sensors on the headmap, the contact quality is not good enough to take recordings. Please check the best practices in this link to achieve good Contact quality: [Contact Quality - EPOC+](https://emotiv.gitbook.io/epoc-user-manual/troubleshooting/contact_quality) or [How to achieve the best contact quality - EPOC X](https://emotiv.gitbook.io/epoc-x-user-manual/getting-started/fitting-your-epoc-x/how-to-achieve-the-best-contact-quality)

   ![EmotivPro\_Quality\_index.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-ea142040816ffb55d00d9fc531a81dd06426747e%2F7ef042ea0b_emotivpro_quality_index.webp?alt=media)
4. Once the indicators of Contact quality and EEG quality turn green, click on the so-called kebab menu (the 3 vertically aligned dots) located on the top right of the screen. Select “Settings” as shown in the picture below.

   ![mceclip0.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7f1fc9f00b5475ed52337c55fa83bfcbf517b6d5%2Fcd0ba2b008_lvlbwnx6yews2xhyawsezwmceclip0.webp?alt=media)
5. As a result of completing point 4., you will find a list of options. Select “Lab Streaming Layer” from that list. After that, you will see its submenu on the right as shown in the picture below.
   * You will find the **Data stream** section there. In that section, make sure to check the boxes “**EEG**” so that you can stream raw EEG data into iMotions. If you wish, you can also check the “Performance Metrics”, “Contact Quality” and “EEG Quality” boxes.
   * In the **Data format** section, please check the “cf\_double64s” option. Afterwards, click the START button, located at the end of that screen. Once the START button turns from pink to green , you are ready to go to iMotions software.

     ![mceclip0.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-957a6f4ce0f3680423eb6147d7ab398df3561269%2Fa3f82d3ba5_oiqijjqpu2kxcnxaamtuwmceclip0.webp?alt=media)

**Helpful links:**

[*User Manual EPOC+*](https://emotiv.gitbook.io/epoc-user-manual/)

[*User Manual EPOC X*](https://emotiv.gitbook.io/epoc-x-user-manual/)

[*User Manual EPOC Flex*](https://emotiv.gitbook.io/epoc-flex-user-manual/)

## \[2] Finalizing LSL settings in iMotions

1\. Go to iMotions software > **Preferences** > **Sensors** and complete the following steps:

* Click on “**Add a device**”.
* Indicate the “**Device Type**” as **Lab Streaming Layer** using the drop-down menu, and **Device Name** (write a descriptive name for it, for example **Emotiv EEG raw data** for raw EEG data). Afterwards, click Save.

  ![mceclip1.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-fcace80f689d7854befefaba25f8cc5950716c52%2Fb4c97a71da_wkounw2dewxdbncgttdqgmceclip1.webp?alt=media)

2\. You are now able to adjust the settings of the LSL device that you have created as follows:

* You will see the **Outlets** section right down below it. In the Outlets section, click on the “Search” button, and using the drop-down menu, select **EmotivDataStream-EEG**.
* Close to the **Outlets** section, you will find the **Device Profile** section.
  * (a) If you own an Emotiv EPOC+ and wish to run EEG R Notebooks in iMotions (9.1.6 or newer is required) in a later signal processing stage, then go to the section "*Collect EEG data from Emotiv for R Notebooks compatibility*" in [*this article*](https://help.imotions.com/lab/sensor-setup/eeg/how-to-collect-eeg-data-with-an-lsl-device-in-imotions.md) for a guide on how to add "**Device profile**" **before** your data collection.
  * (b) If you own an Emotiv headset other than EPOC+ and wish to run EEG R Notebooks in iMotions (9.1.6 or newer is required) in a later signal processing stage, then go to the section "*Collect EEG data from other LSL devices for R Notebooks compatibility*" in [*this article*](https://help.imotions.com/lab/sensor-setup/eeg/how-to-collect-eeg-data-with-an-lsl-device-in-imotions.md) for a guide on how to add "**Device profile**" **before** your data collection.
* In the **Active inlets** section, make sure that the option “EEG” is checked. Finally, check the box “Enable data collection” at the end of that section and press OK.
* Please see the screenshots below that illustrate the procedure. Note that in order to stream Emotiv Performance metrics, Contact Quality and EEG Quality, the procedure is done in the same way. The main difference is that in the **Outlets** section you will select **EmotivDataStream-Performance, EmotivDataStream-Contact-Quality, EmotivDataStream-EEG-Quality,** respectively and in the **Active inlets** section, you will select the respective option. You will not need to add a Device Profile for them.

  ![mceclip2.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-71530792f78216a1dd253067f825b182c424baee%2Fa81f8b7d11_zzuh8owxbkwff5kdvisy7gmceclip2.webp?alt=media)

3\. When completing the points above, you will visualize the Lab Streaming Layer sections for raw EEG data as shown below:

![mceclip4.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-379963fc04e66e22f69ed2748008fa1d06f20e43%2F2671230b0f_s69omxedfuyxlorjjzutsqmceclip4.webp?alt=media)

Remember that if you also wish to stream Performance Metrics, Contact Quality and EEG Quality into iMotions, steps 1 to 2 are to be repeated for them as well. As a result, you could have also created the following devices listed in the sensor bar.

![mceclip5.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-37d3e35980a828807360f4575cad8c84f0e936c9%2F89d0ad7569_leb0pxkqpk6ppuqouc5yuqmceclip5.webp?alt=media)

***NOTE on types of data one could get into iMotions from Emotiv EPOC+***: *Based on our internal testing, one could get raw EEG, Performance Metrics, EEG Quality and Contact Quality streamed from Emotiv EPOC+ through LSL. Please note that as of when the testing has been conducted (December 2021), it is **not** possible to stream Emotiv **power bands** through EmotivPRO. However, one can utilize iMotions R Notebooks to compute power spectral density from raw EEG data. Starting from iMotions 9.1.6, you will be able to collect Emotiv data through LSL **and** run the R Notebooks in a later signal processing stage in iMotions. However, you need to follow specific steps ("Adding the Device profile") before your data collection to enable this. Please follow* [*this article*](https://help.imotions.com/lab/sensor-setup/eeg/how-to-collect-eeg-data-with-an-lsl-device-in-imotions.md) *on the detailed guide.*

4\. The final step is to simply create a study in iMotions. When creating it, in the Sensors tab please make sure to select the “Lab Streaming Layer” option along with the other sensors that you would like to explore. After that, name your study and press "Create study". Now you are ready to collect EEG data using the built-in LSL system!

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-8e61cced9600aab43b2da5c3d1d355c9542c9684%2F0da9540012_lsl.webp?alt=media)

## \[3] Run iMotions R Notebooks on Emotiv raw EEG data

Starting from iMotions 9.1.6, you will be able to collect Emotiv data through LSL in iMotions and run the R Notebooks in a later signal processing stage in iMotions. However, you need to follow specific steps ("Adding the Device profile") **before** your data collection to enable this. Please follow [*this article*](https://help.imotions.com/lab/sensor-setup/eeg/how-to-collect-eeg-data-with-an-lsl-device-in-imotions.md) for a detailed guide.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/sensor-setup/eeg/emotiv/how-to-connect-emotiv-headset-with-imotions-using-emotivpro-through-lab.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
