Example Code

Emotiv EmoComposer Read Smile Example

Code and Documents

Attachment

Overview

This example uses the Emotiv Brain Computer Interface API to read the smile state of the user.

Description

In order to use this, be sure to download the API from here: https://decibel.ni.com/content/docs/DOC-18059.  This example makes use of the emotic headset.  The emotiv headset is a wireless EEG system that measures brainwaves. It allows programmers to use brain activity in their applications. The basic API allows you to access Facial gestures, Emotivional states, Headset data like the gyro, and trained Cognitive actions.

This VI works by creating a Emotiv task and reading the smile state from an Emotiv Read.

Steps to Implement or Execute Code

  1. After installing EmoComposer from Emotiv's website, input the path to the edk.dll file in the install directory
  2. Create a data acquisition task for the Emotiv Headset
  3. Connect to the EmoComposer
  4. Acquire and display whether the EmoComposer is simulating the user Smiling
  5. Close the connection when the task is done

Requirements to Run

Software

LabVIEW 8.6 or higher

VI Package Manager by JKI

Emotiv Toolkit for LabVIEW

Emotiv software shipped with headset

Hardware

Emotiv headset

Saline solution

Additional Images

Block Diagram

EmoComposerExample.png

- Regards,

Beutlich

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors