07-18-2006 04:33 PM
Hi
I require assistance in optimise my vi for writing to a text file.
I am having to convert large amounts of saved data from binary format to text
file (csv) so that the data can be processed by Mat Lab at a later stage.
I am using binary file for all my near real-time data saving, but I need to
increase the speed at which I can save data in text format.
I can achieve over 400Kbytes/second with binary but I am still restricted to
about 35Kbytes/second when writing to text file.
The file sizes I am dealing with is 200 - 400MB, so you can see why I am after
something that tacks less the 30 minutes even on a fast CPU.
Also dose any one know a way of getting out the number of individual
strings (lines) in a text file rather than the file size in bytes, which isn’t
much help when you want to read a file in line chunks and the number of digits/
characters in a individual string (line) vary.
Thanks for your help
Read & write vi's attached
Trevor
07-18-2006 04:46 PM
07-19-2006 02:24 AM
Hi
My main reasons for being able to convert to Text file (csv) was to link in with existing tools that are only csv file based, without needing another little application to convert between the data formats.
If this is the best it can get I could get our numerical analyst to do me up a Mat Lab script to convert the larger files.
Do you know a way of getting out the number of individual strings (lines) in a text file rather than the file size in bytes, this is so I can read in existing small csv files.
Trevor
07-19-2006 08:04 AM - edited 07-19-2006 08:04 AM
Message Edited by RobS (AE) on 07-19-2006 02:06 PM
07-20-2006 07:36 AM
07-20-2006 10:09 AM