Page 1 of 1

What does samples per buffer mean?

Posted: Wed Oct 28, 2020 1:02 am
by Naomi
Hi all,

I am new to EEG, and when I configure GDF file reader settings, there is a line called "Samples per buffer". Is it the same as the "Sampling rate"? If my recorded file is with 250Hz sampling rate, the "Samples per buffer" should be 250 too, is that correct? Many Thanks!

Thank you,
Naomi

Re: What does samples per buffer mean?

Posted: Wed Oct 28, 2020 8:44 am
by Thomas
Hi Naomi,

When a box sends data, it sends a certain amount of samples at a time in a buffer. The "Samples per buffer" setting defines the amount of samples the box should send in one chunk.

The GDF reader box will extract the sampling rate from the GDF file, and send as many buffers (chunks of data) per second as needed: chunks_sent_per_sec = sampling_rate / samples_per_buffer.

Hope that helps.

Cheers,
Thomas