> 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/emotiv-emotiv-cortex-sdk.md).

# Connecting an Emotiv headset through Emotiv Cortex

Connect an Emotiv EEG headset to iMotions Lab through Emotiv Cortex, choose which data to record and understand which data needs an Emotiv license.

iMotions Lab connects to Emotiv EEG headsets through Emotiv Cortex, the service that comes with Emotiv's EMOTIV Launcher. This article covers installing Cortex, setting up the **Emotiv Cortex** sensor in iMotions Lab and recording with it.

To stream from EmotivPRO instead, see [How to connect Emotiv Headset with iMotions using EmotivPRO through Lab Streaming Layer (LSL)](https://help.imotions.com/lab/sensor-setup/eeg/emotiv/how-to-connect-emotiv-headset-with-imotions-using-emotivpro-through-lab.md).

## Requirements

* An Emotiv EEG headset and its USB receiver, or Bluetooth on the computer, as the headset requires.
* EMOTIV Launcher installed on the recording computer, from [Emotiv's website](https://www.emotiv.com/). Cortex runs as a background service that iMotions Lab connects to, so EMOTIV Launcher must stay installed and its service running while you record.
* An Emotiv account, signed in to EMOTIV Launcher.
* An Emotiv license approved for use with iMotions, if you record raw EEG or high resolution performance metrics. See [Data and licenses](#data-and-licenses).

## Prepare EMOTIV Launcher

1. Start EMOTIV Launcher and sign in with your Emotiv account.
2. Turn on the headset and connect it in EMOTIV Launcher. Use EMOTIV Launcher to check the electrode contact quality.

## Set up the sensor in iMotions Lab

1. Click **Preferences > Global Settings** and open the **Sensors** tab.
2. Find the **Emotiv Cortex** section.
3. Select the data to record. The options under **Basic:** need no license. The options under **Requires license:** are available once you enter a license key.
   * **Basic:** **Average powerbands**, **Motion**, **Low resolution metrics** and **Electrode quality**.
   * **Requires license:** **High resolution metrics** and **Raw EEG**.
4. Under **Cortex Credentials**, enter your Emotiv **License key** if you record data that requires a license. The key has the format `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`.
5. If you entered a license key, enter in **Number of sessions to debit** how many sessions iMotions Lab transfers from your Emotiv license to this computer each time it connects. The default is 1. See [Sessions and credits](#sessions-and-credits).
6. Select **Enable data collection** and click **OK**.

The **Emotiv Cortex** widget appears among the sensor widgets in the main window. The sensor is not started when iMotions Lab starts, so that opening iMotions Lab does not spend a session on your license.

## Connect to the headset

1. Click the start button in the **Emotiv Cortex** widget. Its tooltip is **Start/Stop**.
2. If you selected data that requires a license, iMotions Lab asks you to confirm that starting the session spends 1 Emotiv credit. Click **Yes**.
3. The first time iMotions Lab connects, EMOTIV Launcher asks you to approve iMotions as an application, and you may have to accept Emotiv's end-user license agreement. Approve and accept both in EMOTIV Launcher.

When the headset is connected, the widget shows its battery level and wireless signal strength, and the sample rate as a tooltip. Click the license button, with the tooltip **Emotiv license status**, to open **Emotiv Cortex License Status** with the details of your Emotiv license. If the connection fails, an error button appears in the widget. Click it to see what went wrong, for example that no user is signed in to EMOTIV Launcher or that no headset was found.

iMotions Lab uses the first headset that EMOTIV Launcher shows as connected. If none is connected, it connects to the first headset EMOTIV Launcher has found.

Click the start button again to stop the sensor when you have finished recording.

## Record with the headset

Select **Emotiv Cortex** among the sensors when you create the study. See [Using the iMotions Study Builder](https://help.imotions.com/lab/getting-started/using-the-imotions-study-builder.md).

## Data and licenses

iMotions Lab records the data streams you select in Global Settings. Each stream is a signal group in iMotions Lab.

| Group                 | Setting in Global Settings                              | License needed       | Content                                                                                                                                             | Unit         |
| --------------------- | ------------------------------------------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| EEG                   | **Raw EEG**                                             | Yes                  | Raw EEG for each electrode, with sample counter, interpolation flag, signal quality and markers                                                     | µV           |
| Performance metrics   | **Low resolution metrics**, **High resolution metrics** | High resolution only | Interest, Stress, Relaxation, Excitement, Engagement, Long term excitement and Focus, from 0 to 1. Low resolution at 2 Hz, high resolution at 10 Hz | Index        |
| Powerband             | **Average powerbands**                                  | No                   | Power in the EEG frequency bands for each electrode                                                                                                 | µV/√Hz       |
| Motion                | **Motion**                                              | No                   | Accelerometer, gyroscope and magnetometer data from the headset                                                                                     | m/s², rpm, T |
| Device signal quality | **Electrode quality**                                   | No                   | Battery level, wireless signal strength and electrode contact quality, from 0 to 4                                                                  | Index        |

Emotiv's mental commands and facial expressions are not recorded by iMotions Lab.

If iMotions Lab reports **Invalid Emotiv License**, the license key is not approved for use with iMotions. [go.imotions.com/EmotivLicense](https://go.imotions.com/EmotivLicense) explains how to get a license that is.

## Sessions and credits

With a license key, Emotiv counts usage in sessions. A session is debited when the headset is connected and streams data, and it lasts until you stop the sensor in iMotions Lab. **Number of sessions to debit** sets how many sessions iMotions Lab transfers from your Emotiv account to this computer each time it connects, which lets you record without an internet connection until they are used up. **Emotiv Cortex License Status** shows the local quota and the total debit of your license.


---

# 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/emotiv-emotiv-cortex-sdk.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.
