Example Code

Manipulating Text Files Example:

Code and Documents

Attachment

Description: This VI generates a table of data; in this instance the data is random. Using the functions in LabVIEW this VI demonstrates how to determine the number of data rows that are contained within the array and then how to, using our string and write to text file functions create headings and titles for those data columns in LabVIEW and save them to a file.

This example is written for LabVIEW: 2010

Additional modules: No additional modules required just pure 100% LabVIEW

Instructions: Create a blank text file and save it to an appropriate location. Open the VI and select that text file in the file location box on the front panel, select a table size and run. View your populated text file in excel after running.

Front Panel:

text front.png


Block Diagram:

text block.png

Regards

Andrew George @ NI UK

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

Contributors