Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Writing to Text Files

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-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. Place the Write to Text File function on 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.


Resources


 

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