Example Code

Write Buffer to File

Code and Documents

Attachment

Overview
This example VI  show a way to control the input text and control the display of user input on the front panel as well as write it to a text file.

 


Description
This example is intended to accept some user input, wait until an "OK" button is pressed, and then display that user input on the front panel as well as write it to a text file. This is done via Event-Driven programming.

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI "Write Buffer to Text File 2012 NIVerified.vi"
  3. Run the program
  4. Input some text and press the OK button to specify the file to save the text.

 

Additional Information or References
VI Snippet

 VI Snippet.png

 

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

 

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