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

11 ビュー (過去 30 日間)
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!
  1 件のコメント
Jesús Daniel Olivares Figueroa
Jesús Daniel Olivares Figueroa 2020 年 11 月 18 日
Did you already know how to do it? I want to do the same and I am looking for how to do it.

サインインしてコメントする。

採用された回答

Elisa
Elisa 2013 年 10 月 15 日
EmotivEEG headset toolbox from the FileExchange

その他の回答 (1 件)

Christina Diersing
Christina Diersing 2021 年 11 月 3 日
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).

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by