10-17-2008 02:48 AM
Hi,
I want to write a table of data(2D) to a text file. I acquire 1D array(6 lakh rows) of data & want to write that in text file as column 0. And next 1D array to the same text file as column 2. Is it possible todo that?
I don't want to accumulate 2D array and write at last since it consumes more memory & Labview Hangs.
Kindly share your ideas.....
Labview 8.2
Regards,
Raja
10-17-2008 02:53 AM
Why not write it row by row? To be able to do column by column you would have to reread the file every time you want to append data. It is very inefficient.
And just for knowing: How much is "lakh" for the non-indian folks?
10-17-2008 02:57 AM
Hi,
I want the text file in Table format (2D Array) . Each column represents 1 particular channel data.
The size of the 1D array is 600000 rows.
Regards,
Raja
10-17-2008 02:59 AM
10-17-2008 03:05 AM
Hi,
I didn't get you. Can you explain with an example.
Actually I want to append the 1D array of large data to a text file in column wise.
Is it possible to do that?
Regards,
Raja
10-17-2008 03:06 AM
If a column is representing a channel the file would look like this:
ch0 ch1 ch2 etc
v0 v0 v0 etc
v1 v1 v1 etc
This is what I meant by "row by row".
Each acquisition step is written to file as one row.
Open file
For each acquisition of all channels
Set file pointer to end of file
Write data line
EndFor
Close file
10-17-2008 03:07 AM
10-17-2008 03:11 AM
1,00,000 (1 lakh)
10,00,000 = 1,000,000 (10 lakhs = 1 million)
comma plays it all
10-17-2008 04:14 AM - edited 10-17-2008 04:15 AM
10-17-2008 09:48 AM
Can you post that vi in 8.2 ?
Regards,
Raja