LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to a text file

hello all
this is a really simple question.. but believe me or not i cudnt find a solution to this.
whenever i m running the vi, it does run without any problem but when i open the text file where it is suppose to write the data.. the textfile is unreadable. there r some symbols and no numbers.
i m attaching the vi.
can someone plz tell me where is the problem?
regards.
0 Kudos
Message 1 of 5
(2,877 Views)

rdas,

You need to convert the numeric value to string first.

I'll modify your vi & post it.

RayR

Message 2 of 5
(2,873 Views)

Here it is..

I added carriage returns to make the numbers more readable.

There is a better way to do this if you do not have to write to the file for each iteration of the loop. (Let me know)

RayR

 

Message 3 of 5
(2,872 Views)
thanks very much joelabview. this is exactly what i wanted. actually this vi is just a part of a bigger program.
but somehow i was messing up this part.
regards.
0 Kudos
Message 4 of 5
(2,870 Views)

Glad it solved your problem.

RayR

Message 5 of 5
(2,865 Views)