Example Programs

Showing results for 
Search instead for 
Did you mean: 

Initializing a Control from a Text File

This example reads a value from a text file and initializes a numeric control to that value.

This VI reads in a value from a text file and updates a numeric control on the front panel using a property node. It then generates a random sample number and writes it to the same file. The next time the program is run, the numeric control gets updated to the last value written in the text file.


  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code

  1. Unzip “Initialize From File 2012 NIVerified.zip”
  2. Open " Initialize From File 2012 NIVerified.vi"
  3. Run the program.


Additional Information or References
VI Block Diagram


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