Skip to content

LFP Viewer plot discontinuity at low sampling rates #532

Description

@florin-pop

Hello,
I've recently started working on a plugin for open-ephys and I noticed a strange behaviour with signals that have a low sampling rate (around 100Hz), specifically there are discontinuities in the waveform.
The behaviour can be reproduced with the File Reader by loading this sample data which contains 472 samples and 4 channels, each sample has a constant value (0.97uV for channel 1, approx. 2 uV for channel 2 and so on). The expectation is to see a continuous line in the LFP plot, but it's often an interrupted line.
Screenshot 2022-11-16 at 20 03 01
This behaviour is accentuated for more complex signals and they look broken. When the sampling rate is 1kHz or higher I didn't notice the any issues.
I was trying to investigate if I am doing something wrong and started the GUI with the debugger and noticed some assertions failing in a buffer associated with LFP. Could this be a limitation or a bug with open-ephys?
Screenshot 2022-11-16 at 20 01 55

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