01-29-2015 11:06 PM - edited 01-29-2015 11:09 PM
Hello all,
I need small help. Please help me.
How to append new data into older csv file with File I/O functions.
As per below image,
This signals data depends on user request (Signal count is not fixed).
Please give me any idea about this.
01-29-2015 11:22 PM
As far I know you cannot append data to the columns unless you read the complete data and append it in LabVIEW and write everything again.
01-29-2015 11:28 PM
I thought of reading same file again line by line & adding new data to each line & writing into same file.
But,sometimes offset length is missing to inset new data into old positions. I’m not getting properly.
01-30-2015 12:02 AM
If you have the data column wise then just read the data and build it along with the new data (This will be a problem when the file size increases) and write it again. This case you don't have to set the file size since you are re-writing the whole data.
01-30-2015 12:24 AM
I have comma delimited values.
Here, the problem is, I want to do read & write (old+ new data) into same file.
Suppose, reading 100 lines, replace those 100 with new data & so on.
01-30-2015 12:49 AM
01-30-2015 01:15 AM
Dear Dennis_Knustson,
Thanks for your reply.
Actually I have large set of data file (file size is huge). So, I’m unable to read entire file at once ( because of memory issues).
01-30-2015 01:20 AM
01-30-2015 01:48 AM
Dear Dennis_Knustson,
I thought of changing csv to tdms.
But, here also I’m facing other issue.
Sometimes, I need to write string data between some signals (like, Signal data + some conditions information etc.).
Now, I’m planning to use report generation toolkit. But execution time will increase.
Is there is any other ways?
01-30-2015 02:35 AM
If the data size is large I would reommend you to go for *.bin files and then convert it to Excel when it is needed. Binary files can hold the different data types as you wish.