Example Code

Emotiv sample program with LabVIEW

Code and Documents

Attachment

I replaced  example1 in Emotiv SDK  with an example vi by making a new dynamic link library.

For building the dynamic link library and the example vi, I used  vc2008 express and LabVIEW2010 Fall 2010.

Before  starting the example vi, please pay your attention to  the data file path and the input initial values.

Each input initial value must be 0.0.  Please put edk.dll and edk_utills.dll  in the same folder  including the labview_emotiv2.dll.

User number of the first dialog in the example vi must be 0.  In the example vi given by the dll,  the user number  is fixed as 0,

because  of  making the program easily. 

I also uploaded new version :  labview_emotiv3.dll and  labview_emoti3.vi  that the  input initial values are not needed.

Please put edk.dll and edk_utills.dll  in the same folder  including the labview_emotiv3.dll.

I also upload new version of  Labview_emotiv3english : Labview_emotiv3_spread_sheet2  such that  Emotiv_labview3_spread_sheet2.vi  writes  data to a spread sheet

and it is made without flat sequential structure. For building the dynamic link library: Labview_emotiv3.dll and the example vi :  Emotiv_labview3_spread_sheet2.vi,

I used  vc2008 express,  LabVIEW2011 sp1 Spring 2012, and Windows7.

I tried opening the VI on a different PC and found the "?" symbols appeared there.

It seems this is a problem with path settings of the DLL.

The "Call Library Function Node" settings have an absolute path of:

C:\Documents and Settings\hideaki\デスクトップ\Labview_emotiv3english\Labview_emotiv3\Debug\Labview_emotiv3.dll

This folder does not exist on that PC, so the function prototype has a "?" in front.

Once we select the proper path for the DLL, the "?" should go away.

I changed the VI so that it looks for the DLL in C:¥LabVIEW_emotiv3.

Please extract the contents of the updated ZIP file into C:¥LabVIEW_emotiv3.

This way, you will have the same folder structure as mine.

In addition I also changed the new version VI so that it looks for the DLL in C:¥LabVIEW_emotiv3_spread_sheet.

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

Contributors