LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write data to Text file - Column by Column

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 

0 Kudos
Message 1 of 13
(6,397 Views)

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?

Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 13
(6,393 Views)

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 

0 Kudos
Message 3 of 13
(6,390 Views)

Hi,

 

            Insert into array may work.Specify the column index and insert 1st column and later.

0 Kudos
Message 4 of 13
(6,389 Views)

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 

0 Kudos
Message 5 of 13
(6,380 Views)

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

Regards,
André (CLA, CLED)
0 Kudos
Message 6 of 13
(6,379 Views)
Why would you want to do that?
Regards,
André (CLA, CLED)
0 Kudos
Message 7 of 13
(6,378 Views)

 


andre.buurman@carya wrote:
And just for knowing: How much is "lakh" for the non-indian folks?

 

1,00,000 (1 lakh)

 

10,00,000 = 1,000,000 (10 lakhs = 1 million)

comma plays it all

 

0 Kudos
Message 8 of 13
(6,373 Views)

HI,

 

           I hope this works for you but this vi doesnt hanged my PC or Labview. Please check with it and let me know.

 

Regards,

Gita

Message Edited by AutoTEC on 10-17-2008 04:15 AM
0 Kudos
Message 9 of 13
(6,346 Views)

Can you post that vi in 8.2 ?

 

 

Regards,

 

Raja 

0 Kudos
Message 10 of 13
(6,311 Views)