Matlab code to read Raw EEG signals using Mindwave Mobile
Call for Price
Matlab code to read Raw EEG signals using Mindwave Mobile
Description
% clc; clear; close all; %data_att = zeros(1,256); Data=zeros(1,1000); ComPort='COM13'; TG_BAUD_57600=57600; TG_STREAM_PACKETS=0; TG_DATA_RAW = 4; loadlibrary('Thinkgear.dll'); Dllversion=calllib('Thinkgear','TG_GetDriverVersion'); ConnectionId=calllib('Thinkgear','TG_GetNewConnectionId'); CommERR=calllib('Thinkgear','TG_Connect',ConnectionId,ComPort,TG_BAUD_57600,TG_STREAM_PACKETS); if CommERR < 0 disp('Communication error,Reset Matlab and Brainsense'); end i=1; j=1; while i < 1000 if (calllib('Thinkgear','TG_ReadPackets',ConnectionId,1)==1) % if (calllib('Thinkgear','TG_GetValueStatus',ConnectionId,TG_DATA_RAW)~=0) Data(j)=calllib('Thinkgear','TG_GetValue',ConnectionId,TG_DATA_RAW); i=i+1; j=j+1; plot(Data); drawnow; % end end end calllib('Thinkgear', 'TG_FreeConnection', ConnectionId ); calllib('Thinkgear', 'TG_Disconnect', ConnectionId );
Additional information
Weight | 1.000000 kg |
---|
Reviews
There are no reviews yet.