Example Code

File I/O - Basic

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

Download All

Overview

This VI is a good example of a simple write to text file using the basic File I/O VIs.

 

Description

This VI use the File I/O VIs and Functions to open, write to and close a simple text file.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Specify the Save Directory, Text and File Name(with suffix such as *.txt).
  2. Run the VI.

 

Additional Information or References

 

Front Panel

1.PNG

 

VI Snippet

2.png

 

 

 

**This document has been updated to mee the current required format for the NI Code Exchange.**

Regards,
Dan King

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