LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to read updated version of file after file has been replaced via FTP transfer

I have a piece of code running on a PC that reads the text in a .txt file (see below screenshot). This is in a loop and reads the file 2x per second.

 

The file is located on a network storage drive. An NI linux controller FTP transfers a new version of this file periodically, and the goal of the program is to read the file and display the most current text in the file.

 

I am able to read the file correctly when I first run the program, but when the file is updated (a new version is FTP transferred to overwrite the current file), my program does not see the update. The program continues to read the previous version. The code does not produce any errors and continues to run, displaying the text from the previous version.

I have also noticed the following: If I leave the program running, the instant I open the .txt file in windows explorer, the labview program reads the updated version.

 

JM2012_0-1683812015605.png

 

Has anyone encountered this before?

0 Kudos
Message 1 of 1
(509 Views)