From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Text Files

How do I get Labview to read a comma delimited text file and convert it to
an array? I've tried the "Spreadsheet String to Array" vi, but I don't know
how to specify comma delimited (neither the manual nor the help files address
this, but the online help implies that comma delimited is supported).
0 Kudos
Message 1 of 3
(2,661 Views)
se attachment
E
--
-----------------------------------------------------
Click here for Free Video!!
http://www.gohip.com/freevideo/

Ed Haack wrote in message
news:38e4c724@newsgroups.ni.com...
>
> How do I get Labview to read a comma delimited text file and convert it to
> an array? I've tried the "Spreadsheet String to Array" vi, but I don't
know
> how to specify comma delimited (neither the manual nor the help files
address
> this, but the online help implies that comma delimited is supported).



[Attachment string to array.vi, see below]
0 Kudos
Message 2 of 3
(2,661 Views)
Hi,

Here is VI that I found out to be fast if you are reading thousands
of small text files. It is used as a subvi in a for loop with string to
array function and some functions to convert text to 2d array of results .



E wrote:
>
> se attachment
> E
> --
> -----------------------------------------------------
> Click here for Free Video!!
> http://www.gohip.com/freevideo/
>
> Ed Haack wrote in message
> news:38e4c724@newsgroups.ni.com...
> >
> > How do I get Labview to read a comma delimited text file and convert it to
> > an array? I've tried the "Spreadsheet String to Array" vi, but I don't
> know
> > how to specify comma delimited (neither the manual nor the help files
> address
> > this, but the online help implies
that comma delimited is supported).
>
> Name: string to array.vi
> string to array.vi Type: LabVIEW Instrument (application/x-unknown-content-type-LabVIEWInstrument)
> Encoding: x-uuencode

--
-------------------------------------------------
Timo Miettunen

Fincitec Oy Production Department
e-mail: timo.miettunen@fincitec.fi
Address:
Lumikontie 2 Tel: +358-16-2151245
PO BOX 11 Fax: +358-16-221561
FIN-94600 KEMI Finland
-------------------------------------------------
0 Kudos
Message 3 of 3
(2,661 Views)