Data from sensors updating too fast


#1

Hello.
In my program, “values” is an array of doubles.
I wrote this code:

if(eegBuffer[0] > 1200 && i<3)
{
values[i].setText(String.valueof(eegBuffer[0]));
i++;
}

the problems is once I blink it updates in one time the whole array since the program is faster than my blink.
Then for instance, in one blink the array will be:
values[0] = 1200
values[1] = 1250
values[2] = 1280

Anyone has any idea how to catch a separate value every time?

Thanks.