File Exchange

image thumbnail

EmotivEEG headset toolbox

version 1.0 (6.3 KB) by

Used to query the EDK library in order to recieve EEG data from the Emotiv EEG headset

57 Downloads

Updated

View License

--------------------
__ Instructions __
--------------------
1) Add this directory to the toolbox directory of matlab
2) Add the directory to the matlab path
3) Connect the bluetooth dongle
4) Turn on the headset
5) Put on head
6) Type "help EmotivEEG" into matlab command line

%% Usage;
% To create the object
a = EmotivEEG;

% % To start a timmer (keeps running until stopped) and get latest data
a.Run

% % To plot the latest /c data variable values
a.Plot

% % To stop the timmer
a.Stop

% % To record 10 seconds of data and save to a file
a.Record(10)

% % To load recorded data from file into /c data variable (NOTE if you have a timer on this will be overwritten)
LoadRecordedData(self,filename)

% % To disconnect and unload the library
delete(a)

__ Files in Toolbox __
(note dlls currently MUST to be supplied by you (if you have a Emotiv headset you have these dlls and headers. Recommend that you put the required files in same directory as the toolbox ):
--------------------
22/03/2011 01:37 18,225 EmoStateDLL.h
22/03/2011 01:38 1,921,024 edk.dll
18/07/2011 16:08 39,031 edk.h
22/03/2011 01:38 2,011,136 edk_utils.dll
22/03/2011 01:37 2,945 edkErrorCode.h
15/03/2012 12:05 14,513 EmotivEEG.m
15/03/2012 12:04 303 ExampleUsage.m
15/03/2012 12:04 1,060 README.txt

Comments and Ratings (57)

Nayeon Kim

1. put the provided files in the same directory as the toolbox
2. download MinGW-w64 C/C++ Compiler from https://kr.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c++-compiler
3. Call setenv('MW_MINGW64_LOC','C:\TDM-GCC-64') in the command line or put it in your code file
4. Call mex -setup in the command line
if you have trouble downloading MinGW-w64, refer to the comment below.

https://kr.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c++-compiler
hasan sari 26 Apr 2017
Hi everyone,
I have successfully installled the mingw 4.9.2 with respect to the given matlab recommendations.
1)https://freefr.dl.sourceforge.net/project/tdm-gcc/TDM-GCC%20Installer/Previous/1.1309.0/tdm64-gcc-4.9.2.exe
Just download and install to the "C:\TDM-GCC-64" folder
2)https://www.mathworks.com/help/matlab/matlab_external/compiling-c-mex-files-with-mingw.html
3) In matlab call the setenv('MW_MINGW64_LOC','C:\TDM-GCC-64')
4) In matlab call the mex -setup

Roneo

Roneo (view profile)

Hi,I found this problem when i tried to use EmotivEEG on matlab. Does anyone know how to fix it ?

Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found
Error using loadlibrary>lFullPath (line 634)
Could not find file edk.h.

Error in loadlibrary (line 229)

Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h');
%#ok<NASGU,ASGLU>

xu han

xu han (view profile)


Hi,I found an error that I do not know how to solve, can anyone please help me?

Warning: The following error was caught while executing 'EmotivEEG' class
destructor:
Library was not found
??? Error using ==> loadlibrary>lFullPath at 553
Could not find file edk.h.

Error in ==> loadlibrary at 221
header=lFullPath(header);

Error in ==> EmotivEEG>EmotivEEG.EmotivEEG at 73
[notfound,warnings] = loadlibrary('edk.dll','edk.h');
%#ok<NASGU,ASGLU>

Jackson

halo there, currently i am doing my project regarding by using Emotiv Epoc with Matlab and Arduino to design a smart home system.
i had successfully established the connection between Emotiv with Matlab and Matlab with Arduino Uno.
the Question is, is there any possible to create a Function in EmotivEEG.m for activation of Arduino?
i want the Arduino can be activate for real time means that the arduino will not be disconnect until unless i press stop.

Does anyone in this forum know of another resource with more information? The creator hasn't responded to any comments since 2012.

Romain

Romain (view profile)

Does this work with new Emotiv Insight headset ?
Thx

Rykeir

Rykeir (view profile)

I am trying to create a GUI by modified the toolbox that u provided, however ,i dont have any idea on how to modified it because i am still a beginner. Hope someone can help me to solve my question.. thank

Bao

Bao (view profile)

may be your C++ compiler issue. are you sure you install C++ compiler 32 bit for edk.dll 32 bit??.

erika

erika (view profile)

Now I can read live data, but there is an akward problem, everytime the function delete() is used, matlab crashes and stops working. Any ideas?

erika

erika (view profile)

Hi, I have a problem with matlab 2013b, the issue here is that my matlab freezes everytime I run the toolbox and I dont Know why. Hope someone can help me with this. Thanks in advance

Hi everyone
I downloaded the tool kit and did the steps exacltly as mentioned .
but i got an error like this :
a=EmotiveEEg
Warning: The following error was caught while executing 'EmotivEEG' class
destructor:
Library was not found
Caught "std::exception" Exception message is:
Message Catalog was not loaded from the file. Please check file location, format or contents

Could anyone please help me out

Ma Ting

I found an error that I do not know how to solve, can anyone please help me?

a = EmotivEEG
Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found
Error using loadlibrary (line 419)
Failed to preprocess the input file.
Output from preprocessor is:edk.h
C:\Program Files (x86)\MATLAB\R2013a\toolbox\matlab\EmotivToolBox\edk.h : warning C4819:
The file contains a character that cannot be represented in the current code page (936).
Save the file in Unicode format to prevent data loss
C:\Program Files (x86)\MATLAB\R2013a\toolbox\matlab\EmotivToolBox\edk.h(25) : error C2773:
#import and #using available only in C++ compiler

Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h');
%#ok<NASGU,ASGLU>

endcoff

I found a solution that worked for me.

To solve the "The specified module could not be found" problem of edk.dll, I exchanged the file by another from a working example. Maybe this toolbox has a bad edk.dll file

hi
i'm running the example and this error come out

Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found
Error using loadlibrary (line 440)
There was an error loading the library ".\edk.dll"
The specified module could not be found.

Error in EmotivEEG (line 198)
[~] = loadlibrary(strcat(libraryPath, 'edk.dll'), ...

Caused by:
Error using loaddefinedlibrary
The specified module could not be found.

can somebody help me please ?

hamimid ilyes

hi
i need some help please

>> eeglogger
EDK library already loaded
Error using calllib
Method was not found.

Error in eeglogger (line 100)
hData = calllib('edk','EE_DataCreate');

can some one tell me why ??

h.mahmud

help!!
how to do
1) Add this directory to the toolbox directory of matlab
2) Add the directory to the matlab path

can someone teach me?? i try my best but still failed.
thank you

Tony Wang

I got this error while running the EmotivEEG toolbox.
>> a=EmotivEEG
Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found Error using loadlibrary (line 422)
Failed to preprocess the input file.
Output from preprocessor is:edk.h
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\eh.h(30) : fatal error C1189: #error : "eh.h is only for C++!"

Error in EmotivEEG (line 73)[notfound,warnings]=loadlibrary('edk.dll','edk.h'); %#ok<NASGU,ASGLU>

I used Matlab R2014a and MEX configured to use Microsoft Visual C++ 2008. Can someone help me, please?

akshay raj

this is a very good tool, but i have one problem, my matlab r2013a freezes after the plot is displayed, I have to restart matlab and rerun the tool.

I have increased my java heap size but i still get the same problem.

any idea on how to over come this problem?

Bolin

Bolin (view profile)

By the way, is there a way to configure the files so that this toolbox can be operated on the R2014 environment?

Bolin

Bolin (view profile)

Hi Bao, I didn't realize that the data was an identical replica to the SDK. I thought the data was retrieve through reading the data streaming from the USB port

Bao

Bao (view profile)

You can read more in the user manual of the SDK. in which has the order of columns.

Bolin

Bolin (view profile)

When you query the data object, what do column 4 - 18 represent in terms of the locations of the electrodes on your head?

In which matlab did you try this tool? r2010? I'm getting the following error.
Warning: Message from C preprocessor:
lcc preprocessor error: C:\Program Files\MATLAB\R2010b\toolbox\EmotivToolBox\edk.h:17 Could not find
include file <string>
lcc preprocessor error: C:\Program Files\MATLAB\R2010b\toolbox\EmotivToolBox\edk.h:18 Could not find
include file <sstream>

> In loadlibrary at 371
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Warning:
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_ExpressivTrainingControl_enum{EXP_NONE=0'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv'.
> In edk_proto at 10
In loadlibrary at 432
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********

No match found for enum value expression EE_ExpressivAlgo_t in 0x0800}EE_ExpressivAlgo_t;typedefenumEE_AffectivAlgo_enum{AFF_EXCITEMENT=0x0001 expression ignored.
Found on line 444 of input from line 653 of file C:\Program Files\MATLAB\R2010b\toolbox\EmotivToolBox\EmoStateDLL.h

No match found for enum value expression EE_AffectivAlgo_t in 0x0010}EE_AffectivAlgo_t;typedefenumEE_CognitivAction_enum{COG_NEUTRAL=0x0001 expression ignored.
Found on line 444 of input from line 653 of file C:\Program Files\MATLAB\R2010b\toolbox\EmotivToolBox\EmoStateDLL.h

No match found for enum value expression EE_CognitivAction_t in 0x2000}EE_CognitivAction_t;typedefenumEE_SignalStrength_enum{NO_SIGNAL=0 expression ignored.
Found on line 444 of input from line 653 of file C:\Program Files\MATLAB\R2010b\toolbox\EmotivToolBox\EmoStateDLL.h

No match found for enum value expression EE_Event_t in 16|32|64|128|256|512|1024}EE_Event_t;typedefenumEE_ExpressivEvent_enum{EE_ExpressivNoEvent=0 expression ignored.
Found on line 1097 of input from line 1165 of file C:\Program Files\MATLAB\R2010b\toolbox\EmotivToolBox\edk.h
*********
Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found
??? Error using ==> loadlibrary at 477
There was an error running the loader mfile. Use the mfilename option
to produce a file that you can debug and fix if needed. Please report
this error to the MathWorks so we can improve this function.

Error in ==> EmotivEEG>EmotivEEG.EmotivEEG at 73
[notfound,warnings] = loadlibrary('edk.dll','edk.h');
%#ok<NASGU,ASGLU>

Caused by:
Error using ==> struct
Invalid field name "EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv"

Dabira

Dabira (view profile)

Hoe to select compiler?
Its asking Please select from 0-1?

The error was:
Warning: The following error
was caught while executing
'EmotivEEG' class destructor:
Library was not found
??? Error using ==>
loadlibrary>lFullPath at 547
Could not find file edk.h.

Error in ==> loadlibrary at
220
header=lFullPath(header);

Error in ==>
EmotivEEG>EmotivEEG.EmotivEEG
at 73
[notfound,warnings]
=
loadlibrary('edk.dll','edk.h');
%#ok<NASGU,ASGLU>

Bao

Bao (view profile)

hello Jarin.
you should edit toolbox to using in GUI.
your error : may be you lack of 'self' variables when call function or variable 'self' was wrong

hello i am currently using your code here.. i am attempting to create a GUI and having a difficulty in accessing the recorded data..
i am encountering this error using the code
>>LoadRecordedData(self,filename)
Undefined function or variable 'self'.

hello i am currently using your code here.. i am attempting to create a GUI and having a difficulty in accessing the recorded data..
i am encountering this error using the code
>>LoadRecordedData(self,filename)
Undefined function or variable 'self'.

Bao

Bao (view profile)

you can contact by email: hoangbao2106@gmail.com
I was edit this toolbox. and now, I using Guide to realtime data.

deepa

deepa (view profile)

I got this error while running the EmotivEEG toolbox.
a = EmotivEEG;
Warning: Message from C preprocessor:
lcc preprocessor error: C:\Program Files (x86)\MATLAB\R2012b\toolbox\EmotivToolBox_submittedV1 (1)\EmotivToolBox\edk.h:17 Could not find include file <string>
lcc preprocessor error: C:\Program Files (x86)\MATLAB\R2012b\toolbox\EmotivToolBox_submittedV1 (1)\EmotivToolBox\edk.h:18 Could not find include file <sstream>

> In loadlibrary at 318
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Warning: 'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_ExpressivTrainingControl_enum{EXP_NONE=0'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv'.
> In edk_proto at 10
In loadlibrary at 375
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********

No match found for enum value expression EE_ExpressivAlgo_t in 0x0800}EE_ExpressivAlgo_t;typedefenumEE_AffectivAlgo_enum{AFF_EXCITEMENT=0x0001 expression ignored.
Found on line 444 of input from line 653 of file C:\Program Files (x86)\MATLAB\R2012b\toolbox\EmotivToolBox_submittedV1 (1)\EmotivToolBox\EmoStateDLL.h

No match found for enum value expression EE_AffectivAlgo_t in 0x0010}EE_AffectivAlgo_t;typedefenumEE_CognitivAction_enum{COG_NEUTRAL=0x0001 expression ignored.
Found on line 444 of input from line 653 of file C:\Program Files (x86)\MATLAB\R2012b\toolbox\EmotivToolBox_submittedV1 (1)\EmotivToolBox\EmoStateDLL.h

No match found for enum value expression EE_CognitivAction_t in 0x2000}EE_CognitivAction_t;typedefenumEE_SignalStrength_enum{NO_SIGNAL=0 expression ignored.
Found on line 444 of input from line 653 of file C:\Program Files (x86)\MATLAB\R2012b\toolbox\EmotivToolBox_submittedV1 (1)\EmotivToolBox\EmoStateDLL.h

No match found for enum value expression EE_Event_t in 16|32|64|128|256|512|1024}EE_Event_t;typedefenumEE_ExpressivEvent_enum{EE_ExpressivNoEvent=0 expression ignored.
Found on line 1097 of input from line 1165 of file C:\Program Files (x86)\MATLAB\R2012b\toolbox\EmotivToolBox_submittedV1 (1)\EmotivToolBox\edk.h
*********
Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found
Error using loadlibrary (line 419)

There was an error running the loader file. Use the mfilename option to produce a file that you can debug and fix if needed. Please report this error to the MathWorks so we can improve this
function.

Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h'); %#ok<NASGU,ASGLU>

Caused by:
Error using struct
Invalid field name "EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv"

I am using Matlab 2012b (32 bits) and my edk.dll version is 2.0.0.20.
Is it because of this edk.dll version? Could someone please help to solve this error?

aizmeng

I need help!!!
>> a = EmotivEEG;
Warning: Message from C preprocessor:
lcc preprocessor error: D:\matlab\toolbox\EmotivToolBox\edk.h:17 Could not find include
file <string>
lcc preprocessor error: D:\matlab\toolbox\EmotivToolBox\edk.h:18 Could not find include
file <sstream>

> In loadlibrary at 374
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Warning:
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_ExpressivTrainingControl_enum{EXP_NONE=0'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv'.
> In edk_proto at 10
In loadlibrary at 435
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********

No match found for enum value expression EE_ExpressivAlgo_t in 0x0800}EE_ExpressivAlgo_t;typedefenumEE_AffectivAlgo_enum{AFF_EXCITEMENT=0x0001 expression ignored.
Found on line 444 of input from line 653 of file D:\matlab\toolbox\EmotivToolBox\EmoStateDLL.h

No match found for enum value expression EE_AffectivAlgo_t in 0x0010}EE_AffectivAlgo_t;typedefenumEE_CognitivAction_enum{COG_NEUTRAL=0x0001 expression ignored.
Found on line 444 of input from line 653 of file D:\matlab\toolbox\EmotivToolBox\EmoStateDLL.h

No match found for enum value expression EE_CognitivAction_t in 0x2000}EE_CognitivAction_t;typedefenumEE_SignalStrength_enum{NO_SIGNAL=0 expression ignored.
Found on line 444 of input from line 653 of file D:\matlab\toolbox\EmotivToolBox\EmoStateDLL.h

No match found for enum value expression EE_Event_t in 16|32|64|128|256|512|1024}EE_Event_t;typedefenumEE_ExpressivEvent_enum{EE_ExpressivNoEvent=0 expression ignored.
Found on line 1097 of input from line 1165 of file D:\matlab\toolbox\EmotivToolBox\edk.h
*********
Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found
??? Error using ==> loadlibrary at 480
There was an error running the loader mfile. Use the mfilename option
to produce a file that you can debug and fix if needed. Please report
this error to the MathWorks so we can improve this function.

Error in ==> EmotivEEG>EmotivEEG.EmotivEEG at 73
[notfound,warnings] = loadlibrary('edk.dll','edk.h');
%#ok<NASGU,ASGLU>

Caused by:
Error using ==> struct
Invalid field name
"EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv"

How to solve it ??? Give me some detail process

tafteh

tafteh (view profile)

Hi,
- before using EmotivEEG, first you need to change the C compiler to LCC 32 bit version. This is done by executing follwoing commad:

-mex setup
and select the LCC compiler 32 bi2 version.

so far the only draw back is the 32bit version. This is also tested in 2011a and b, 2012b

This would resolve the library load issue

Igor

Igor (view profile)

Hello!

Is it really so important to use R2010a version of MatLab?
I have R2010b version and I get the same errors as in previous comments. I have all the necessary files, but still it doesn't work.

I get this error:
>> a = EmotivEEG;
Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found
Error using loadlibrary>lFullPath (line 587)
Could not find file edk.h.
Error in loadlibrary (line 220)
header=lFullPath(header);
Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h'); %#ok<NASGU,ASGLU>
please give solution

I get this error:
>> a = EmotivEEG;
Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found
Error using loadlibrary>lFullPath (line 587)
Could not find file edk.h.
Error in loadlibrary (line 220)
header=lFullPath(header);
Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h'); %#ok<NASGU,ASGLU>

please give solution

Laura

Laura (view profile)

I get this error:

>> a = EmotivEEG;

Warning: The following error was caught while executing 'EmotivEEG' class destructor:
Library was not found
Error using loadlibrary>lFullPath (line 587)
Could not find file edk.h.

Error in loadlibrary (line 220)
header=lFullPath(header);

Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h'); %#ok<NASGU,ASGLU>

Thanks a lot for providing this toolbox.

Amir Homayoun

Hi,

Thanks for providing this toolbox. It is very helpful. I have two questions.

1. Is it possible to use this toolbox in MAC?
2. How can you record Markers along with data?

Very many thanks.

Greetings,
Amir

David

David (view profile)

Hi,
First I have to thank for the effort of coding and online method in Matlab to capture the Emotive Data.
After saying that, i have a problem:

Error using calllib
Method was not found.

Error in EmotivEEG (line 87)
self.hData = calllib('edk','EE_DataCreate');

Error in ExampleUsage (line 2)
h = EmotivEEG;

I don't know if the function was deprecated. Or its just that I have to update something.
I really appreciated any help in this matter.
Cheers,
David

SC

SC (view profile)

When I call
Code
a=EmotivEEG;
ans = a.data;

I assume that the first column in ans will be the indices (rolling from 0 to 128). Am I right?
A detailed description of the problem is posted at http://www.emotiv.com/forum/forum19/topic589/?PAGEN_1=2

Qasem

Qasem (view profile)

shuy8

shuy8 (view profile)

Hi, i have one question
somebody know that means the values of the graphic when i write a.Plot

Alex Frid

Nice!!

Rami Khushaba

Rami Khushaba (view profile)

Hi All

To make this toolbox work:

1- Make sure you have Matlab 32-bit version installed and "NOT" 64-bit version.
2- type "mex -setup" and choose the LCC compiler as your default compiler.This is only available in the 32-bit version.
3- Toolbox should work fine now.

Pototo

Pototo (view profile)

I get this error

Warning: Message from C preprocessor:
lcc preprocessor error:
C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\edk.h:17 Could not
find include file <string>
lcc preprocessor error:
C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\edk.h:18 Could not
find include file <sstream>

> In loadlibrary at 318
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Warning:
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_ExpressivTrainingControl_enum{EXP_NONE=0'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv'.
> In edk_proto at 10
In loadlibrary at 375
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********

No match found for enum value expression EE_ExpressivAlgo_t in 0x0800}EE_ExpressivAlgo_t;typedefenumEE_AffectivAlgo_enum{AFF_EXCITEMENT=0x0001 expression ignored.
Found on line 412 of input from line 598 of file C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\EmoStateDLL.h

No match found for enum value expression EE_AffectivAlgo_t in 0x0008}EE_AffectivAlgo_t;typedefenumEE_CognitivAction_enum{COG_NEUTRAL=0x0001 expression ignored.
Found on line 412 of input from line 598 of file C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\EmoStateDLL.h

No match found for enum value expression EE_CognitivAction_t in 0x2000}EE_CognitivAction_t;typedefenumEE_SignalStrength_enum{NO_SIGNAL=0 expression ignored.
Found on line 412 of input from line 598 of file C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\EmoStateDLL.h

No match found for enum value expression EE_Event_t in 16|32|64|128|256|512|1024}EE_Event_t;typedefenumEE_ExpressivEvent_enum{EE_ExpressivNoEvent=0 expression ignored.
Found on line 1053 of input from line 1139 of file C:\Users\Pototo\Documents\Dropbox\Public\Programming\MATLAB\jPL\edk.h
*********
Warning: The following error was caught while executing 'EmotivEEG' class
destructor:
Library was not found
Error using loadlibrary (line 419)

There was an error running the loader file. Use the mfilename option to produce a
file that you can debug and fix if needed. Please report this error to the
MathWorks so we can improve this function.

Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h');
%#ok<NASGU,ASGLU>

Caused by:
Error using struct
Invalid field name
"EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv"

I put all the edk.lib and edk.dll, etc, in the matlab folder along with the toolbox, but it still does not work. Also, I don't know how to get access to those libraries such as <sstream>, and all those above at the beginning of the message.

Can you provide a better instruction set on how to set up this library in the appropriate manner?

Than you

Pototo

Pototo (view profile)

is there a way to connect more than one headset with this toolbox?

thanks

Brian Ho

I got a warning display "need Microsoft C or C++", for the loading libriaris. I am using 2010version. any suggestion

Leo

Leo (view profile)

It seems that there are multiple copies of header files and they are different. Try using these from "C:\Program Files\Emotiv Research Edition SDK_v1.0.0.5-PREMIUM\doc\examples_Matlab".

There are also multiple copies of dll files but they are the same on my computer.

Leo

Leo (view profile)

Dear Gavin:

we have tried unsuccessfully to use your toolbos. We have corrected some previous errors but it still appears "Error loading library intermediate output follows.
The actual error is at the end of this output." We have tested the toolbox on Matlab 2008, 2009, 2010 and 2011. I really need your help. Regards

Elias Reyes

I don't have any of those suggested versions. The version I have is 1.0.0.3

Gavin

Gavin (view profile)

Ug, more work I guess.
Elias can you confirm you are using the 1.0.0.5 version.

Rami Khushaba

Rami Khushaba (view profile)

Elias: make sure you using edk.dll version 1.0.0.4 and not the recent 1.0.0.5 as this toolbox was developed just before the new release.

Gavin

Gavin (view profile)

For the warning: First what version of matlab? I was using 2010a. None of my variables exceeds MATLAB's maximum name length of 63.

As for the other it is a library error. You need to make sure the dlls and headers have the same dates (i.e. are the same versions) as in the list. Look at the readme file to the dates of the dlls I am using. I want to provide these but I have not got permission from Emotiv. Do you have the same header and dlls files?

Elias Reyes

Hello. I´m having some problems reading the headset data whit this toolbox.

This is my error:

%%%%%%%%%%%%%
%%%%%%%%%%%%%

>> a = EmotivEEG;
Warning:
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_ExpressivTrainingControl_enum{EXP_NONE=0'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'EXP_SENSITIVITY}EE_ExpressivThreshold_t;typedefenumEE_Expressiv'.
> In edk_proto at 10
In loadlibrary at 395
In EmotivEEG>EmotivEEG.EmotivEEG at 73
Error loading library intermediate output follows.
The actual error is at the end of this output.

%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%

I hope you can help me. I could resolve the other warnings with types.h.

Regards.

Elías.

Rami Khushaba

Rami Khushaba (view profile)

MATLAB Release
MATLAB 7.10 (R2010a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

EmotivToolBox/