what is 'Ibin' variable in W_Focus widget?

BabilordBabilord Iran
edited May 2020 in OpenBCI_GUI

hi, my name is Babak. I am using openBCI Ganglion with java Processing. i want to know in openBCI source code, in W_focus tab, what means Ibin?
I want to obtain values of frequency 13 Hz, so, Can I use the following code?

for (int Ichan=0; Ichan < 2; Ichan++) {  // only consider first two channels
       for (int Ibin = 0; Ibin < fftBuff[Ichan].specSize(); Ibin++) {        
           if (Ibin == 17){
               FFT_freq_Hz = fftBuff[Ichan].indexToFreq(Ibin);
               FFT_value_uV = fftBuff[Ichan].getBand(FFT_freq_Hz);
               println("FFT_value_in_13Hz = " + FFT_value_uV);
           }
...

please guide me????

Comments

Sign In or Register to comment.