Skip to content

DataThread plugin addToBuffer issues #686

@bgrgic-inbrain

Description

@bgrgic-inbrain

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
Image

Chunks of 1536 samples being passed to addToBuffer
Image

Chunks of 3072 samples being passed to addToBuffer
Image

After I rolled back to v0.6.7 again, the problem disappeared.

Versions:

  • OS: Win11
  • GUI version: v1.0.1

Thanks,
Bruno

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions