-
Notifications
You must be signed in to change notification settings - Fork 697
Description
Hi,
I am making my own own DataThread plugin which is passing the received data through addToBuffer method. With plugin-GUI v0.6.7 everything was working great.
Since upgrading from plugin-GUI v0.67 to v1.01 (I tried with v1.0.2 as well from dev branch) I noticed big drop in visualization quality of the data in the LFP viewer, with big spikes of negative value overlaying the data. After some investigation I found out the negative values are added to the stream after each call to addToBuffer, distorting the visualization.
To be sure this is the case, I fed the buffer with a sine wave on 1 channel and made sure the data is smooth and not overflowing.
To Reproduce
DataThread plugin, LFP viewer and calling addToBuffer method to pass data with N amount of samples
Screenshots
Chunks of 768 samples being passed to addToBuffer

Chunks of 1536 samples being passed to addToBuffer

Chunks of 3072 samples being passed to addToBuffer

After I rolled back to v0.6.7 again, the problem disappeared.
Versions:
- OS: Win11
- GUI version: v1.0.1
Thanks,
Bruno