LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I save a mutlitcolumn data to a text file?

I am trying to save a multicolumn data to a text file without using Report Generation VIs. Here is the detail scenario...

I have data in the following format.

Time Voltage
1 2
2 3
3 6 ...

and
Power
1

and
Peaks
x-axis y-axis
Peak1 1 4
Peak2 5 11

If I have such data, how would I put them in a columnar format with their title and labels in a text file.
Any example VIs would be nice to see.

Thanks.
0 Kudos
Message 1 of 3
(2,565 Views)
All you need probably is two functions. Write Characters to File for titles and labels, and Write To Spreadsheet File for the data. You would have to use them each a couple of times. By that I mean write a couple of lines with the labels, write the data, write a couple of lines with new labels, write next set of data, etc. until done. There's several shipping examples that use both functions so you could start with those.
0 Kudos
Message 2 of 3
(2,565 Views)
Here is one solution, hope it helps. I would like to see this done using clusters and less shift arrays, I'm sure there are a few ways to do this with less wires but i guess that's what sub vi's are for...
0 Kudos
Message 3 of 3
(2,565 Views)