LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert CSV-file to EDF-file

Hello,

 

we have a large CSV file which contains multi-channel EEG data (brain signals). For further processing we need to convert the large CSV-File into a EDF-File (EDF = European Data Format).

 

Is this possible in LabVIEW? What is the easiest way to achieve this?

 

Thank you very much in advance.

 

Best regards,

Michael

0 Kudos
Message 1 of 6
(5,569 Views)

You could do as long you know how the EDF format looks like.

 

A quick search on Google revealed that EDF is just a sample stored in little-endian 16-bit values. If you could show us a sample input and output file, we could guide you to achieve it.

 

If it is simple enough, it would look like this (I am just guessing by the definition)

santo_13_0-1628864883182.png

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 6
(5,536 Views)

A search on the Web finds something called "EDFbrowser" that has an option call "ASCII (CSV) to EDF/BDF format converter".

 

Bob Schor

Message 3 of 6
(5,508 Views)

Hello Bob Schor,

 

thank you very much for your answer. Sorry for my late reply. 

 

I already checked this tool out and it works fine. The thing is that I need to convert the CSV-file to an EDF-file automatically in my Labview VI. As the "EDFbrowser" offers no commandline options for the "ASCII to EDF converter" I am not able to command the conversion directly from my Labview VI and I am not able to convert my file without opening the "EDFbrowser" with its converter manually every time.

 

So I would like to have something which I can command out of my Labview VI.

 

Best regards

0 Kudos
Message 4 of 6
(5,450 Views)

Hello santo_13,

 

thank you very much for your answer. Sorry for my late reply.

 

I have an example input (CSV) and an example output (EDF) file.

 

Is there a way to make this case private, so I can send you these two files?

 

Best regards

0 Kudos
Message 5 of 6
(5,448 Views)

@Michael_1122 wrote:

 

Is there a way to make this case private, so I can send you these two files?


What's so secretive about this data that you can't post it here? It's much better to keep all this out in the open for other people to be able to potentially benefit from too.

 

My personal feeling about this is if it is secret enough that it needs to stay out of such a forum it certainly is a problem that warrants some monetary compensation. Otherwise just post it here and we can look at it. If it isn't to difficult I'm sure there will be people trying to help out. Of course if it turns out to be a complicated data format things look a little different. Nobody is going to spend lots of time to develop a library of functions unless they get paid for or it is something they need themselves.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 6 of 6
(5,444 Views)