 Michael_1122
		
			Michael_1122
		
		
		
		
		
		
		
		
	
			08-13-2021 04:26 AM
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
 santo_13
		
			santo_13
		
		
		
		
		
		
		
		
	
			08-13-2021 09:28 AM
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)
 Bob_Schor
		
			Bob_Schor
		
		
		 
		
		
		
		
		
	
			08-13-2021 04:51 PM
A search on the Web finds something called "EDFbrowser" that has an option call "ASCII (CSV) to EDF/BDF format converter".
Bob Schor
09-10-2021 02:44 AM
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
09-10-2021 02:48 AM
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
 rolfk
		
			rolfk
		
		
		 
		
		
		
		
		
	
			09-10-2021 03:31 AM
@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.