LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating array and writing to a txt file

Solved!
Go to solution

Hi, I would like to ask you.

 

I have an 1D array and I would like to create a txt file with two columns. First is an index of the element and the second is the value of this element.

 

How would it be possible?

0 Kudos
Message 1 of 5
(836 Views)
Solution
Accepted by topic author JohnJohn2012

Array to File.png

Here is a quick and dirty version.

0 Kudos
Message 2 of 5
(830 Views)

Thank you for the answer. Could I kindly ask you, what is the name the function with pencil o the image, because I unfortunately have labview 2019, so I can`t open this file.

0 Kudos
Message 3 of 5
(824 Views)

Write Delimited Spreadsheet.vi

Attached the LabVIEW 2019 version.

0 Kudos
Message 4 of 5
(817 Views)

wiebeCARYA_0-1701079907284.png

EDIT: that crossed. This solution is a bit more flexible though. For instance, the 1D array could be a string (you didn't specify).

 

Also note that the %.; should be used in any solution, or you'll get problems in when your application or it's data moves regions.

0 Kudos
Message 5 of 5
(814 Views)