LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Format txt file

Solved!
Go to solution

Hi,

 

I have a VI that saves a cluster of 2 1D array into a txt file.

However, all the data is written into 1 column, how do i modify my VI so that when the data reaches -0.061901, the next line (0.000000) should start at another column instead of continuing on the next line.

 

And also, how do i add a title to both columns?

Download All
0 Kudos
Message 1 of 3
(2,501 Views)

Format txt file.png

(Hmm, some crap stayed in the picture, you only need the path control and the Write to spreadsheet with Transpose.)

 

You were almost there. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 3
(2,486 Views)
Solution
Accepted by topic author LHX

1. You need to transpose the 2D array of data.

2. Also, changing the 'Delimiter' from 'End of Line' to 'Comma', will help you writing a CSV file, that can be opened in Excel.

3. Your can add the Header manually.

 

Code.png

 


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 3 of 3
(2,471 Views)