Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Writing to Text Files

LabVIEW 2012 Help

Edition Date: June 2012

Part Number: 371361J-01

»View Product Info

Complete the following steps to write to a text file.

  1. Add a string control to the front panel window.

  2. Enter into the string control the text that you want to write to the text file.
  3. Add the Write to Text File function to the block diagram.

  4. Wire an absolute path to the file (use dialog) input of the Write to Text File function.
  5. Wire the string control to the text input of the Write to Text File function.
  6. Run the VI. The VI writes the text from the front panel window string control to the file wired to the file (use dialog) input.

After you write to a text file, read the file.

Refer to the Write to Text File VI in the labview\examples\file\smplfile.llb for an example of writing a text spreadsheet of simulated acquired data to a file.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit