
xdf - issue #1
EEG and event markers not syncronized in .xdf recordings from SNAP/LSL/LabRecorder.
Reported by grace.leslie, Yesterday (32 hours ago)
What steps will reproduce the problem?
I've recorded a dataset using LabRecorder (for EEG) and SNAP (for event markers), and imported it using the XDF Importer plugin for EEGLAB.
What is the expected output? What do you see instead?
The timestamps for the EEG data start at "Zero" and end at 692.65 (Epoch End) But the timestamps for events created by SNAP seem to be in "seconds since the computer was turned on", very large numbers. Of course when I try to epoch in EEGLAB I get an error saying they are out of the dataset boundary.
What version of the product are you using? On what operating system? Running LabRecorder and SNAP on Windows 8.1
Comment #1
Posted on Mar 24, 2015 by Massive MonkeyHi Grace! I am currently managing labstreaminglayer.
Did you record the timestamps in SNAP? I.e. are there two separate XDFs that you are loading into EEG lab? The reason I ask is that load_xdf.m (which is actually part of mobilab) along with dataSourceXDF.m collectively have a routing for zeroing out timestamps when you load an XDF file.
Indeed, the timestamps attached by LSL are often huge numbers and differ from computer to computer -- it's current CPU time. Hence, the zeroing out process. If you record both data streams into the same XDF with LabReorder, you should be fine.
Comment #2
Posted on Mar 24, 2015 by Massive Monkey#2 grace.leslie
Hi David,
I recorded both streams into the same .xdf file using LabRecorder. I then used the xdfimport1.08 plugin within EEGLAB (which is using load_xdf).
This is what ends up in my "Streams" variable when I run load_xdf directly. The timestamps are in the same units, but not zeroed properly.
Streams{1,3}.info
ans =
name: 'EEG'
first_timestamp: '-2041.090439'
last_timestamp: '-1348.913871'
sample_count: '152384'
Streams{1,4}.info
ans =
name: 'SNAP-Markers'
first_timestamp: '1921.060913632'
last_timestamp: '2559.083428821'
sample_count: '25'
Comment #3
Posted on Mar 24, 2015 by Massive MonkeySorry I was unclear in my first post-- I was using LabRecorder to record all of the streams together into one xdf file.
Comment #4
Posted on Mar 24, 2015 by Massive MonkeyAnd I presume that the version of load_xdf corresponds to the version of xdfimport?
Status: Accepted
Labels:
Type-Defect
Priority-Medium