Poor EEG data quality using LSL and matlab from OPENBCI 21 channel cap

5 vues (au cours des 30 derniers jours)
Saima Raza
Saima Raza le 25 Fév 2023
I am trying to collect data from OPENBCI 21 channel cap. I have put the GEL in six channels only (FPZ, GND, REF, FP1, FP2, FP3, FP4, FP8, FP7) as I had some issues in data collection therefore just to verify if everything is OK.
My MATLAB code to collect data using LSL is given below:
disp('Loading the library...');
lib = lsl_loadlib();
% resolve a stream...
disp('Resolving an EEG stream...');
result = {};
while isempty(result)
result = lsl_resolve_byprop(lib,'type','EEG');
end
% create a new inlet
disp('Opening an inlet...');
inlet = lsl_inlet(result{1});
disp('Now receiving data...');
x = 1;
eegstarttime = clock;
tic
while toc<60 % get data from the inlet while toc>0 && toc<60
[chdata(x,:),tsdata(x,1)] = inlet.pull_sample();
x = x + 1;
end
end
My data set is also attached ...Can anyone please guide if this data is OK while no filter is applied and only 6 channel are wet.

Réponses (0)

Catégories

En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by