Skip to content

LSL timestamps jump in EEG hyperscanning set-up #134

@clementinne

Description

@clementinne

Hello,

I am conducting an EEG hyperscanning experiment, my set-up is as follows :

  • 2 LiveAmps, recording 32 channels each, at 500Hz
  • Robotic set-up including a master computer using C++ LSL library to send markers of events to recording computer by ethernet
  • Recording computer with LSL LabRecorder which records (2 EEG streams + 1 event marker stream) into .xdf file

My offline data processing involves pyxdf to load the .xdf files, in particular .load_xdf() method with no specific options.

I compute the drift between the two EEG streams by looking at the difference EEG1['time_stamps']-EEG2['time_stamps'] across sample indices. I believe each value of EEG1['time_stamps'] or EEG2['time_stamps'] corresponds to timestamps of the LSL clock.

My problem is that for certain recordings, one of the EEG streams' timestamps have a big jump (10 to 20 seconds) at random moments. (See picture) This issue does not seam to affect the data, meaning EEG signals seem to remain continuously recorded. They do not seem to affect the event marker stream either. However, a chunk of data corresponding to the duration of the jump is missing at the end of the affected EEG stream.

Image

I am not sure why this occurs, maybe this is due to LSL-clocks resetting during the recording. I have observed this type of timestamp jump in 5 out of 96 recordings for now, but I am planning to collect more data and would like to know if there is an explanation/solution to this issue. I perform synchrony analyses between pairs of EEG so I need a minimal delay between them.

Thank you for your help!

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