LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write data to a text file

Hi,

I have a one dimensional array which has n numbers in it. Now I need to write this array data to a text file.

In the textfile the first line should be I1.
The second line should be NODES.
The third line should be the number of numbers in the array say n.
And the fourth line should have all the n numbers with a single space between them.

Can any one help me in this.

Thanks a lot.
0 Kudos
Message 1 of 2
(2,585 Views)
Hi,
Here's what you could do in order to write your data into a txt file.
In the VI I've attached, make sure the directory of the file path exists otherwise you'll get an error

Hope this helps !
Julien
Message 2 of 2
(2,585 Views)