02-06-2009 10:45 AM
Hi,
am very new to Labview. I used a high speed data logger (labview 6i). Files are saved in binary format. How can I convert the files to ascii or text format for postprocessing?
Thanks
Solved! Go to Solution.
02-09-2009 09:29 AM
Hi Lukonde,
How are you storing the data to binary files? Are you using the Write to Binary File.vi? If so, would you be able to reaplace it with the Write to Text File.vi instead?
What environment would you like to call the data from for post-processing? This can be an important consideration as explained in the following KB
As you mentioned you are new to LabVIEW, perhaps you will find the links on the following page useful in order to build up your knowledge of LabVIEW.
Regards,
Steve
02-09-2009 10:27 AM
Hi Steve,
Thanks for the advice. I will do some reading about labview -:). But is there anything I can do with the data that I already saved, i.e. converting it into text format or matlab readable file?
Am using a high speed data logger to record data and I can view it using a high speed data reader (in labview). How do I change the Write to Binary File.vi to Write to Text File.vi?
Many thanks,
Valentine
02-10-2009 11:17 AM
Hi Valentine,
Would it be possible for you to post your High Speed Data Reader.vi so that I may have a look through it and make some suggestions on how you can implement various types of File I/O?
With regards to using the data you already have, I will investigate to see how to implement a conversion from binary to ASCII format.
Regards,
Steve
02-12-2009 07:28 AM
Hi Steve,
Thanks for your help. Please see my High Speed Data Reader.vi attached.
Many thanks,
Valentine
02-12-2009 10:49 AM
Hi Valentine,
Thanks for the reply. I Meant to ask you for the High Speed Data Logger. Not to worry thought, I think I may have something of a solution for you.
Essentially you should be able to open the binary files in a program like Notepad and view them as you would a normal txt file. So in that way you can access the data.
If you wanted to import the data into another environment you can convert the existing binary files to ASCII text files.
I have written a small piece of code which should allow you to convert your existing binary files to a .txt file should you wish.
You can also implement the same type of File I/O in the high speed data logger, to store the file as a txt file in the first place.
Hope this helps,
Steve
02-13-2009 05:32 AM
Hi Steve,
Again, thank you very much for your help. Am unable to open the vi because it requires labview 8.6. Am currently using an old version of labview (6.1). Is it possible that you can convert it for me to be labview 6.1 compartible?
Thanks,
Valentine.
02-16-2009 05:12 AM
Hey Valentine,
Hope you had a good weekend.
I've had a go at converting the example code down to LabVIEW 6, so you should have no troubles opening it.
Hope it helps.
Steve
02-16-2009 05:36 AM
Hi Steve,
Am really greatful for your help. Thanks.
Valentine