Code covered by the BSD License  

Highlights from
Brain-Machine Interface (BMI) based on Electroencephalography (EEG)

image thumbnail

Brain-Machine Interface (BMI) based on Electroencephalography (EEG)

by

 

Real-Time Discrete Wavelet Transform and ANFIS classifier for Brain-Machine Interface based on EEG

adc_interrupt(event)
function [] = adc_interrupt(event)
% This function will get the data of the NI DAQ buffer of the input 
% channels whenever the listener event is reached

% Declare global variables
global data caso fs temp_adc
% Define calibration time in seconds
seg_cali=4;
% Get data from buffer
x1=event.Data;
% Concatenate new dat to data vector
data=[data;x1];
% Verify if calibration time is reached
if caso==1
    if(length(data)>=((seg_cali*fs)-1))&&(~temp_adc)
            temp_adc=1;
    end
end

Contact us