I’ve noticed some small deviations when I compare the output of pop_writebva with original brainvision data.
-
There is an additional marker in the beginning: “Mk1=Time 0,,1,0,0,0". This results in a different numbering of markers, and in the writebva output there is one marker more than in the original data
-
the differentiation between "Stimulus" and "Response" markers is lost in the export, even though this information is preserved in the EEG.event structure. Replacing line 132
EEG.event(index).type = 'Stimulus';
with
EEG.event(index).type = EEG.event(index).code;
seems to fix this.
-
very very minor:
"\1" is not correctly written into the output file, but an additional \ in line 126 should fix that (\1)
-
is there any way to preserve the date information stored with the first New Segment marker?
Mk2=New Segment,,1,0,0,0 % output from write_bva
Mk1=New Segment,,1,1,0,20170816200208360070 % line from original vmrk file
I guess this is related to the EEG.bvtime field. But since I get there a negative number, I'm not sure how exactly it works.
Usually I wouldn't care about that, but if you have synchronous video, this is a useful piece of information.
Many thanks and best regards,
Clemens
I’ve noticed some small deviations when I compare the output of pop_writebva with original brainvision data.
There is an additional marker in the beginning: “Mk1=Time 0,,1,0,0,0". This results in a different numbering of markers, and in the writebva output there is one marker more than in the original data
the differentiation between "Stimulus" and "Response" markers is lost in the export, even though this information is preserved in the EEG.event structure. Replacing line 132
EEG.event(index).type = 'Stimulus';
with
EEG.event(index).type = EEG.event(index).code;
seems to fix this.
very very minor:
"\1" is not correctly written into the output file, but an additional \ in line 126 should fix that (\1)
is there any way to preserve the date information stored with the first New Segment marker?
Mk2=New Segment,,1,0,0,0 % output from write_bva
Mk1=New Segment,,1,1,0,20170816200208360070 % line from original vmrk file
I guess this is related to the EEG.bvtime field. But since I get there a negative number, I'm not sure how exactly it works.
Usually I wouldn't care about that, but if you have synchronous video, this is a useful piece of information.
Many thanks and best regards,
Clemens