LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formating text files/string data

I started using a program called Tableau - the normal way I log data into a text file does not work will with Tableau. What I am trying to do is log data row by row.

 

Example of the old way:

Date Time Voltage Temp....etc. then new line below it with data.

 

Example of what I am trying to do

Date       12/6/18

Time       6:35 am

Voltage   120

etc...

Then repeats itself over and over again till the VI is stop. I am still new at LabVIEW and do not know all its features. I am close on what I am trying to do (see attachments). I can make a text file log in rows but it over writes the data every time it updates. How can I make this loop append the data every time it updates?

 

Download All
0 Kudos
Message 1 of 4
(2,057 Views)

Open the file once before the loop and close it once after the loop.  Then you can write as much as you want inside of the loop.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,049 Views)

use format into string

str.png

0 Kudos
Message 3 of 4
(2,045 Views)

Might as well use Format Into File, one less node...

0 Kudos
Message 4 of 4
(2,020 Views)