Passing values for stimulations
Posted: Mon Dec 30, 2019 3:44 am
hi!
(first off, im not a programmer or coder, but am able to muck around with stuff found on the web and put things together).
I wanted to use Muse to connect with openvibe and capture my brainwaves while i listen to guided meditation or self-hypnosis audios (or watch video). The idea is that the stream records values and I pass stimulations as markers which would help me later when reviewing the output. Markers would capture events within an audio, e.g. started intro, started induction, started affirmation, started awakening etc. I have the time codes pre-entered into js so, for example, it will always send a stimulation event when I reach 1:10 of abc.mp3 and so on.
I had a question about getting specific values values to show up in the csv file which captures the signal and events.
I see from your example on this page (http://openvibe.inria.fr/csv-file-format-description/) that the event ID output in the file is expected to be clean and short. e.g:
0.25000,0,-20.20,-10.10,0.0,10.10,20.20,32000:32010,0.25000:0.25000,0:0
I am able to get my stimulations to show up in the csv/ov at approx the right time (which is what i need), but the values that show up are really confusing. I am using js so I just used the sample code in (http://openvibe.inria.fr/pub/src/extra/ ... ender.java), put that in an online java tool and it generated the array based on the value of the event ID. That allowed me to visualize what AS was expecting to get. To make my life simple, now I just send an array directly at each event using a client.write function to the acquisition server.
So if I use client.write('0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0'), the CSV always shows me this value of the event id at all the various timestamps.
35.5781250000,17,1.7324779034,1.3920503855,-1.2412731647,-0.9286367297,3467820298285101088,35.5852072134,0.0000000000
So my questions are:
1) what do I need to pass in the array such that it would show me one of standard OpenViBE stimulation codes? I would like to be able to get the values shown here (http://openvibe.inria.fr/stimulation-codes/) so that I could then consistently use values across tracks e.g. use OVTK_StimulationId_Label_2A for all inductions and say use OVTK_StimulationId_Label_17 as the marker when an audio track ends.
2) When I was using a unique array for each stimulation, I noticed that sometimes the event value would get recorded with multiple ids separated with a ':' . I read that it means "Events are recorded as numbers, several events can be present on the same line (timestamp) separated by colons." Does that indicate that my code sent more than one event at the same time? That would be pretty strange since that was not the intention. Is there anything I can do to avoid this?
Many thanks in advance,
(first off, im not a programmer or coder, but am able to muck around with stuff found on the web and put things together).
I wanted to use Muse to connect with openvibe and capture my brainwaves while i listen to guided meditation or self-hypnosis audios (or watch video). The idea is that the stream records values and I pass stimulations as markers which would help me later when reviewing the output. Markers would capture events within an audio, e.g. started intro, started induction, started affirmation, started awakening etc. I have the time codes pre-entered into js so, for example, it will always send a stimulation event when I reach 1:10 of abc.mp3 and so on.
I had a question about getting specific values values to show up in the csv file which captures the signal and events.
I see from your example on this page (http://openvibe.inria.fr/csv-file-format-description/) that the event ID output in the file is expected to be clean and short. e.g:
0.25000,0,-20.20,-10.10,0.0,10.10,20.20,32000:32010,0.25000:0.25000,0:0
I am able to get my stimulations to show up in the csv/ov at approx the right time (which is what i need), but the values that show up are really confusing. I am using js so I just used the sample code in (http://openvibe.inria.fr/pub/src/extra/ ... ender.java), put that in an online java tool and it generated the array based on the value of the event ID. That allowed me to visualize what AS was expecting to get. To make my life simple, now I just send an array directly at each event using a client.write function to the acquisition server.
So if I use client.write('0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0'), the CSV always shows me this value of the event id at all the various timestamps.
35.5781250000,17,1.7324779034,1.3920503855,-1.2412731647,-0.9286367297,3467820298285101088,35.5852072134,0.0000000000
So my questions are:
1) what do I need to pass in the array such that it would show me one of standard OpenViBE stimulation codes? I would like to be able to get the values shown here (http://openvibe.inria.fr/stimulation-codes/) so that I could then consistently use values across tracks e.g. use OVTK_StimulationId_Label_2A for all inductions and say use OVTK_StimulationId_Label_17 as the marker when an audio track ends.
2) When I was using a unique array for each stimulation, I noticed that sometimes the event value would get recorded with multiple ids separated with a ':' . I read that it means "Events are recorded as numbers, several events can be present on the same line (timestamp) separated by colons." Does that indicate that my code sent more than one event at the same time? That would be pretty strange since that was not the intention. Is there anything I can do to avoid this?
Many thanks in advance,