What does samples per buffer mean?

Concerning processing components: filters, file load/save, visualizations, communication ...
Post Reply
Naomi
Posts: 1
Joined: Sun Oct 11, 2020 5:06 am

What does samples per buffer mean?

Post 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

Thomas
Posts: 210
Joined: Wed Mar 04, 2020 3:38 pm

Re: What does samples per buffer mean?

Post 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

Post Reply