05-22-2013 04:13 AM
Hello,
With my program, I am trying to save text files from labview onto the computer based on size. EG: if a text file exceeds say 10 Mb then the remaining data is saved on a new text file and so on. So in the end a 100 Mb data file gets saved as 10 text files of 10 Mb each.
I tried doing something using while loops but did not work. I ended up getting a bigger file. Could anyone provide some inputs into this.
Thank You
05-22-2013 06:04 AM
I think this will help you
05-23-2013 07:58 AM
Hey,
Tnx for the suggestion...but I am unable to implement it into my diagram.
Can there be some possibility with For Loops??
05-23-2013 09:47 AM
Your code has several issues, some of which will make it simply not work. Going from left to right on the diagram:
Issue 3 above, until solved, will make splitting your data into multiple files very difficult. You can fetch in chunks from a TDMS file by specifying an offset and number of points when you get an array of data.
You can keep track of how big your file is by keeping track of the size of the strings you add to it and add them up. You will need to add a shift register to your loop to do this.
If you need more info, please let us know. You are heading in the right direction.
05-24-2013 03:19 AM
Hello DFGray,
Thank You for ur reply.
Issues 1 and 2 is no problem for me, as I am getting the correct form of text file in the end. With the names on top followed by the corresponding measurement values. I have implemented the TAB constant as you suggested (yes I had a problem reading in excel) (am wrking with labview for only 4 months now so don't know all the features).
I will try implementing the suggestion for breaking the TDMS file so as to get different text files. Will tell you how it goes.