LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to text file

hi need help .
i have to write some data to text file.
let say i have a stationNumber=SED001, values a=1, b=2, c=3,
then stationNumber=SED002, values a=2, b=2, c=7,
.....
.....
.....
i want all this write in a same txt file but in different line.
 
0 Kudos
Message 1 of 9
(3,470 Views)

What you need to do is format the text appropriartely with the data and save the resulting string to file.

I'll illustrate with an example.

Be back soon,,

RayR

0 Kudos
Message 2 of 9
(3,465 Views)

See attached example in LV8.5.

RayR



Message Edited by JoeLabView on 06-19-2008 10:01 PM
Download All
0 Kudos
Message 3 of 9
(3,463 Views)
thk u but im using labview 8.0
0 Kudos
Message 4 of 9
(3,458 Views)
All you need to create that VI from scratch is shown in the screenshot.Smiley Wink
0 Kudos
Message 5 of 9
(3,456 Views)

thk u joe. actually it like this

the user will in insert the for example

SED=001, a=1,b=2,c=3,

and press ok to save it,

thn the user insert second data

SED=002, a=2, b=2, c=3,

i can save to text file for but the second data is overwriten the first data

how to make this second. third and so on... data inserted to different line.

0 Kudos
Message 6 of 9
(3,452 Views)
Did you attach a True constant to the "Append Data" input to whichever Write File VI you are doing?
 
In Ray's example, all of the data is put together in one string (I assume he has a carriage return at the end of his format string) and written out in one shot at the end.  It will show up as different lines.  If yours is overwriting, then you must have structured your code differently.
0 Kudos
Message 7 of 9
(3,445 Views)
do you hv any example which i can refer ?
0 Kudos
Message 8 of 9
(3,440 Views)

Hi jeyanthi,

try this example.
Hope it helps

Mike

0 Kudos
Message 9 of 9
(3,405 Views)