How to start recording EEG data using EMOTIV when I press a 'start' button in a Matlab GUI?

11 views (last 30 days)
Dear all,
I don't really know where to start in order to solve this issue.
I've a GUI, a press the button 'start' and I want to start recording the data collected via Emotiv .
I found in the Emotiv folder the api folder containing the Matlab example, which has *.m files and *.h files.
I'm sorry I'm not expert in Matlab and I've never compiled using api before and I'm really lost.
I've searched in google, if someone have already done that, however, it seems that I don't have much luck, unfortunately!
Thanks in advance for any help someone might provide!

Accepted Answer

Elisa
Elisa on 15 Oct 2013
EmotivEEG headset toolbox from the FileExchange

More Answers (1)

Christina Diersing
Christina Diersing on 3 Nov 2021
So, I found it easiest to make a new csv file with only the timestamp and electrode data, then import that file into Matlab. I used this code:
% Importing csv data
T=readtable('Try 4.csv'); %This reads the csv data into a table named T
timestampOrig=T.Timestamp; %this makes timestampOrig equal to the original Timestamp
T.Timestamp=T.Timestamp-T.Timestamp(1); %This changes the official Timestamp column so it is 0 at the start of the recording
% Changes the sensor names from EEG_<sensor> to <sensor>
T.Properties.VariableNames(2:end)=extractAfter(T.Properties.VariableNames(2:end),'_');
Afterwards, you can use T.<sensor> to get the arrays of data for each electrode (ex. T.F7).
If you want to also get the interval markers you can use this code to import it:
Int=readtable('Event Marker Try 4_EPOCX_126368_2021.06.04T15.42.31.04.00_intervalMarker.csv');
EvtMar=Int.latency;
EvtMarLab=Int.type;
EvtLab=readtable('Try 4 Event Labels.xlsx');
table(EvtLab)
Where Int.latency will give you the latency for each interval and Int.type will give you the label of the marker (I found it easier to make an excel file that also lists the label and what abbreviation I used for each marker label in the plots).

Categories

Find more on EEG/MEG/ECoG in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!