Stimulation problem when exporting to EDF/GDF
Posted: Mon May 11, 2015 12:56 am
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.
-> 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.