LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TRANSFORM A TEXT FROM TXT FILE

My problem is that I have a txt file and I have to transform it. This txt file has numbers separated by commas in only line, I don't know how many numbers It has. I want change the commas for a carriage return (\n). What do I do? I help that urgent, anybody could help me please?
0 Kudos
Message 1 of 13
(3,663 Views)
Hi,
Here's a VI that could be interesting for what you want to do.

Hope this helps !
Julien
Message 2 of 13
(3,663 Views)
same VI for LV6.1
Julien
0 Kudos
Message 3 of 13
(3,663 Views)
Hi,

Something like this...

Regards,

Wiebe.

"IMMA" wrote in message
news:50650000000800000032CE0000-1079395200000@exchange.ni.com...
> My problem is that I have a txt file and I have to transform it. This
> txt file has numbers separated by commas in only line, I don't know
> how many numbers It has. I want change the commas for a carriage
> return (\n). What do I do? I help that urgent, anybody could help me
> please?



[Attachment File convert.vi, see below]
0 Kudos
Message 4 of 13
(3,663 Views)
Oops, replace the "'" with a ",".


"Wiebe@CARYA" wrote in message
news:407fb03b@newsgroups....
> Hi,
>
> Something like this...
>
> Regards,
>
> Wiebe.
>
> "IMMA" wrote in message
> news:50650000000800000032CE0000-1079395200000@exchange.ni.com...
> > My problem is that I have a txt file and I have to transform it. This
> > txt file has numbers separated by commas in only line, I don't know
> > how many numbers It has. I want change the commas for a carriage
> > return (\n). What do I do? I help that urgent, anybody could help me
> > please?
>
>
>
0 Kudos
Message 5 of 13
(3,663 Views)
Please, can you send another time your vi? I can't charge it with my labview, my computer said: there was an error.
Thanks a lot.
IMMA
0 Kudos
Message 6 of 13
(3,663 Views)
Please, can you send another time your vi? I can't charge it with my labview, my computer said: there was an error. Perphaps the problem is that my labview is 5.1 version.
Thanks a lot.
IMMA"
0 Kudos
Message 7 of 13
(3,663 Views)
Please, can you send another time your vi? I can't charge it with my labview, my computer said: there was an error. Perphaps the problem is that my labview is 5.1 version.
Thanks a lot.
IMMA"
0 Kudos
Message 8 of 13
(3,663 Views)
Have you tried the Read From Spreadsheet File function (File I/O palette)? Use a , as the delimter and it should work just fine for your file. If it doesn't, could you post the text file you're trying to read?
0 Kudos
Message 9 of 13
(3,663 Views)
Here's a picture of the VI I sent earlier

If your txt file is made of more than 1 line then it still works but concatenate all the lines to the new txt file.

Hope this helps !

Julien
0 Kudos
Message 10 of 13
(3,515 Views)