Skip to content

Urgent: incorrect timestamps when reading ADC continuous channel #154

Closed

Description

@shayo

I've done a short test recording of a photodiode signal (to make sure things are properly synchronized in my rig).
I observed weird and non-expected behavior when looking at the timestamps returned from load_open_ephys_data_faster.

When parsing the continuous file, nsamples are all 1024. Plotting info.ts looks good on the surface:

image

But when I look more carefully (plot diff), I get the following:
image

This doesn't look right.
Also, when I plot the signal, aligned to these timestamps, it artificially stretches some intervals:
image

I can hookup a signal generator, but I'm pretty sure I'll also see a skewed sine wave.
For reference, here is the same data, plotted without the timestamps (i.e., assuming fixed sampling rate):

image

This data was from an ADC channel.
Looking at another channel (ch1 - spike), diff returns a perfect 1024.

This may or may not be related to the other issue I found today. As a side note - this recorded session was not paused or resumed.

Activity

  1. shayo commented on Jul 31, 2017

    @shayo
    ContributorAuthor

    Another side comment - shouldn't the number of samples always match (ADC, CH1)?
    I see a mismatch between them.

  2. shayo commented on Aug 1, 2017

    @shayo
    ContributorAuthor

    FYI: @aacuevas , @jsiegle , @jvoigts
    This goes away when I record all channels, so this is probably related to the other bug that I reported.
    I'm guessing the index increment is incorrect in RHD2000Thread::updateBuffer() ?!?!?

  3. aacuevas commented on Aug 1, 2017

    @aacuevas
    Collaborator

    I'm inclined to think the issue is in the recording part, since the number of recorded channels is irrelevant to the hardware buffers. But it might very well be related

  4. shayo commented on Aug 2, 2017

    @shayo
    ContributorAuthor

    Recent patch to OriginalRecording solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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