CSV reader not available

Come here to discuss about OpenViBE in general!
pickku
Posts: 23
Joined: Tue Mar 08, 2011 12:43 pm

CSV reader not available

Post by pickku »

Sir,
I want CSV reader in designer I was informed that CSV reader will be available in 10 version but when I installed it their is no CSV reader also it is not supporting Emotiv driver.Please give me solution

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: CSV reader not available

Post by lbonnet »

As stated in its documentation page here, the CSV file reader is flagged as unstable.
You need to set in your configuration file the following token :

Code: Select all

Designer_ShowUnstable = true
For the Emotiv driver, I guess you will find on the forum and the website plenty information about it, and why it is not included in the 0.10.0 release or any other version.

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

pickku
Posts: 23
Joined: Tue Mar 08, 2011 12:43 pm

Re: CSV reader not available

Post by pickku »

Thankyou for your answer sir.The CSV reader is available now in the designer now.But when I loaded CSV file that I got from after recording data from Emotiv in CSV reader and connected to signal display and also I corrected the headings from the file but when I run it ,it is showing fatal error

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: CSV reader not available

Post by lbonnet »

Thankyou for your answer sir.The CSV reader is available now in the designer now.
You're welcome !
.But when I loaded CSV file that I got from after recording data from Emotiv in CSV reader and connected to signal display and also I corrected the headings from the file but when I run it ,it is showing fatal error
I'm sorry pickku I don't understand what you did there.
Please be precise, and take your time when stating your problems. Your posts are not limited to 2 lines :)
And every time please copy paste any error/warning messages that is printed in the console..
You can even attach a screenshot of your scenario, or attach the scenario itself....

I can't do much without that kind of information, and it's not very time-efficient. For you and me.

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

pickku
Posts: 23
Joined: Tue Mar 08, 2011 12:43 pm

Re: CSV reader not available

Post by pickku »

I have attached the design and CSV file Please check it because when I run it is showing fatal error
Attachments
srieyeblink2.CSV
this is the CSV file
(168.9 KiB) Downloaded 260 times
this is the design
this is the design
csv reader.jpg (34.67 KiB) Viewed 17315 times

pickku
Posts: 23
Joined: Tue Mar 08, 2011 12:43 pm

Re: CSV reader not available

Post by pickku »

Sir,just now I sorted out what is the problem.In the CSV file no proper heading are their so I corrected and saved as xls file then converted it as CSV and loaded in the CSV reader in the designer, but when I connected to the signal display the signals are not displayed.Can you tell me what is the problem

jlegeny
Posts: 239
Joined: Tue Nov 02, 2010 8:51 am
Location: Mensia Technologies Paris FR
Contact:

Re: CSV reader not available

Post by jlegeny »

Since you have modified the csv file you will have to resend it so we can see what is inside. Also, the image you have uploaded is compressed too much so we can't see anything.

It seems that you are using a channel selector, so you should also post settings of this box, maybe you are selecting channels that do not exist.

pickku
Posts: 23
Joined: Tue Mar 08, 2011 12:43 pm

Re: CSV reader not available

Post by pickku »

sir sorry for inconvenience and delay.Here I am attaching the design and the csv file
Attachments
blink3_blink3.csv
this is csv file
(163.46 KiB) Downloaded 281 times
this the design
this the design
csv reader1.JPG (18.69 KiB) Viewed 17272 times

jlegeny
Posts: 239
Joined: Tue Nov 02, 2010 8:51 am
Location: Mensia Technologies Paris FR
Contact:

Re: CSV reader not available

Post by jlegeny »

Alright, I see the problem.

Please look at this sample of a CSV file readable by OpenViBE

Time (s);POz;O1;Oz;O2;Iz;CPz;Sampling Rate
0.000000;25389.382812;27596.539062;19842.158203;23459.009766;9108.259766;22999.054688;512
0.001953;25391.355469;27603.279297;19846.636719;23456.199219;9111.783203;22999.710938;
0.003906;25393.505859;27604.439453;19848.521484;23464.978516;9108.570312;22999.123047;
0.005859;25393.333984;27597.558594;19846.648438;23467.472656;9113.077148;23000.531250;
0.007812;25391.441406;27593.832031;19844.587891;23457.156250;9115.195312;23005.384766;


As you can see, there are two more things in addition to signal, the Time and the Sampling rate. The sampling rate is specified ONLY at the end of the first line (colored in green).

As for the time, it is the time of the signal in seconds and it is always on the first column (in orange). Since it is not there in your file you will have to recreate that column, it is pretty easy, since the time step is always 1/Sampling_Frequency (in this case 1/512 = 0.00195312) so it's a simple formula in excel.

---

I have one question for you though. In the previous screenshot (on the one with a CVS reader and a Channel Selector), I can see on the log that some boxes have crashed. This shouldn't happen even with broken files. Can I ask you to send me the scenario file along with the CVS file you were using at the moment so I can look at it. Thank you.

pickku
Posts: 23
Joined: Tue Mar 08, 2011 12:43 pm

Re: CSV reader not available

Post by pickku »

thankyou for your reply sir.I have attached the previous csv file and design
Attachments
csv reader.jpg
csv reader.jpg (67.56 KiB) Viewed 17260 times
srieyeblink3.CSV
(172.1 KiB) Downloaded 257 times

jlegeny
Posts: 239
Joined: Tue Nov 02, 2010 8:51 am
Location: Mensia Technologies Paris FR
Contact:

Re: CSV reader not available

Post by jlegeny »

Thank you,

however to debug this I will need the scenario file (just save the scenario in openvibe and send me the .xml file please)

pickku
Posts: 23
Joined: Tue Mar 08, 2011 12:43 pm

Re: CSV reader not available

Post by pickku »

sir I have loaded xml file
Attachments
PP1.xml
(9.14 KiB) Downloaded 264 times

pickku
Posts: 23
Joined: Tue Mar 08, 2011 12:43 pm

Re: CSV reader not available

Post by pickku »

Sir,I have loaded the xml file of design whether you can tell what is the problem

bpayan
Posts: 46
Joined: Fri Jan 08, 2010 4:02 pm

Re: CSV reader not available

Post by bpayan »

Dear Pickku

Thank you for your scenario. Can you check if the separator of your file is the same as the separator defined in your csv box settings. Because in files you sent, the csv file used a separator “,” and the separator defined in your scenario is “;”. When I try with an other csv file, I have no problem when both separator are same but I have got the same errors messages as you when the two separators are differents.

I hope this helps.

bpayan

pickku
Posts: 23
Joined: Tue Mar 08, 2011 12:43 pm

Re: CSV reader not available

Post by pickku »

thankyou for reply sir.I tried as you told changing to comma in channel selectors but it is not working.You told its working for you can you send the file and design to me.

Post Reply