Page 1 of 1

Stimulation problem when exporting to EDF/GDF

Posted: Mon May 11, 2015 12:56 am
by Aness
After completing an experiment with OpenVibe, i wanted to process my data in Matlab so i found some tools in the scenario/convert to convert my signal to a CSV,GDF and EDF file format. After running the scenario without getting errors or warnings i tried to check my files and here is what i got:

-> I can see the signal and the stimulation when playing back the OV file (No problem).
-> for the converted CSV, i had to convert to two files one for the signal and the other for the stimulation triggers and i got all the stimulation triggers (No problem).
-> GDF and EDF i lost the stimulation triggers, in the EDF files some stimulation triggers where exported but that lead me to an error when processing the data.

In addition to that, i went back to the designer and created a simple scenario with a GDF reader and a generic stream reader. i connected each file with a stimulation listener box. The first one is named "from ov file" and the second is "from gdf file". i played the scenario and got only simulations from the ov file :

............
[ INF ] At time 106.906 sec <Box algorithm::(0x00002915, 0x00001f1f) aka from ov file> For input 0 with name Stimulation stream 1 got stimulation 33034[OVTK_StimulationId_Label_0A] at date 106.891 sec and duration 0.000 sec
[ INF ] At time 106.906 sec <Box algorithm::(0x00002915, 0x00001f1f) aka from ov file> For input 0 with name Stimulation stream 1 got stimulation 33286[OVTK_StimulationId_NonTarget] at date 106.891 sec and duration 0.000 sec
[ INF ] At time 107.281 sec <Box algorithm::(0x00002915, 0x00001f1f) aka from ov file> For input 0 with name Stimulation stream 1 got stimulation 33031[OVTK_StimulationId_Label_07] at date 107.250 sec and duration 0.000 sec
[ INF ] At time 107.281 sec <Box algorithm::(0x00002915, 0x00001f1f) aka from ov file> For input 0 with name Stimulation stream 1 got stimulation 33286[OVTK_StimulationId_NonTarget] at date 107.250 sec and duration 0.000 sec
[ INF ] At time 107.625 sec <Box algorithm::(0x00002915, 0x00001f1f) aka from ov file> For input 0 with name Stimulation stream 1 got stimulation 33028[OVTK_StimulationId_Label_04] at date 107.609 sec and duration 0.000 sec
[ INF ] At time 107.625 sec <Box algorithm::(0x00002915, 0x00001f1f) aka from ov file> For input 0 with name Stimulation stream 1 got stimulation 33286[OVTK_StimulationId_NonTarget] at date 107.609 sec and duration 0.000 sec
[ INF ] At time 108.000 sec <Box algorithm::(0x00002915, 0x00001f1f) aka from ov file> For input 0 with name Stimulation stream 1 got stimulation 33030[OVTK_StimulationId_Label_06] at date 107.969 sec and duration 0.000 sec
............................


So is there a specific way to export the data to EDF/GDF without losing the stimulations.

Re: Stimulation problem when exporting to EDF/GDF

Posted: Fri May 29, 2015 7:12 am
by jtlindgren
Hello Aness, this could be a bug, we'll have to investigate and if its a bug, really fix it. We have automatic tests for GDF reading/writing, but they do not cover stimulations yet.

Thank you for the report!


Best,
Jussi

Re: Stimulation problem when exporting to EDF/GDF

Posted: Mon Jun 01, 2015 1:44 pm
by jtlindgren
I looked into it, but I couldn't reproduce the issue. Saving stimuli to GDF seems to work ok. Can you send me the data file and exact details how you tried to convert it? If there is a problem in GDF read or write, we'll try to fix it. For EDF, we don't currently have the time.


Thanks,
Jussi