Example Code

Read Flat Text File into LabVIEW LV 8.6/LV 8.5

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI Reads a Flat Text File, breaks it into fields according to a Read Position and length of characters
to extract and writes each field into an element of an array.

 

Description

This code will go through a Text File and will prompt the amount characters chosen starting at a selected
offset. All the information obtained will be divided into a string array.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Choose the path for the Text File to Read.
2. Run the VI.
3. On the Text Read from File indicator the extracted text will be showed.

 

Additional Information or References

 Snippet.png

Salvador Mikel
National Instruments
Ingeniería de Aplicaciones
www.ni.com/soporte

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

Comments
Charlie247
Member
Member
on

Would you please add a version that is compatable with Labview 8.5

Thank you

smikel
NI Employee (retired)
on

VI for LabVIEW 8.5 available

Salvador Mikel
National Instruments
Ingeniería de Aplicaciones
www.ni.com/soporte