To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Shows in one unified code how to simply read and write from a text file.
Description:
This code joins important technical concepts like the usage of a event structure combined with how to read and write from a text file. It is important to notice that due to the nature of the example, we are opening and closing the reference within the loop, however, this is not recommended for constant writing or reading from file. It can be more efficient to maintain the reference open and close it once we are finished using the file.
Requirements
LabVIEW 2012 (or compatible).
Steps to Implement or Execute Code
1. Open the "Text File IO LV2012 - NIVerified.vi"
2. Select the Run button.
3. Search the desired directory.
4. Select the name of the file.
5. Insert a text in the designated space and choose write in order to write it to the file.
6. Select the read button in order to access the information on the file.
Additional Information or References
Regards,
Dan King
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.