Example Code

Read Text File and Convert to Other Data Types

Code and Documents

Attachment

This VI imports text files (these files are included with the download of this VI and should remain in the same folder as the VI), separates the elements in each text file, converts each element into a particular data type, builds a cluster from these different data types, and then builds an array of each cluster generated.  The methods shown could be used for importing configuration or initialization information among other uses.  This VI can be opened and used in LabVIEW 2010 or newer.

TextConvert.png

Josh B
Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors