alexandrebarachant / muse-lsl

Python script to stream EEG data from the muse 2016 headset
BSD 3-Clause "New" or "Revised" License
629 stars 184 forks source link

muse-lsl uses time() as a timestamp, rather than LSL time? #196

Open DominiqueMakowski opened 1 year ago

DominiqueMakowski commented 1 year ago

Hi. I have a Muse-2 system and I am trying to record signals synchronized with BITalino physiological signals via LSL.

Unfortunately, despite ticking "synchronize" in LabRecorder, the timestamps are very different in the resulting xdf:

{'info': defaultdict(list,
             {'first_timestamp': ['71359.94191930001'],
              'last_timestamp': ['71367.8835576'],
              'sample_count': ['8095'],
              'clock_offsets': [defaultdict(list,
                           {'offset': [defaultdict(list,
                                         {'time': ['71365.49836495001'],
                                          'value': ['-1.665000309003517e-05']}),
                             defaultdict(list,
                                         {'time': ['71370.49929815'],
                                          'value': ['-7.049995474517345e-06']})]})]})}

As far as I understood, muse-lsl provides unix time (number of seconds since 1970) and pylsl since the computer is on. How can we synchronize these two streams?

Related https://github.com/alexandrebarachant/muse-lsl/issues/130