LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with data saving into text file

Solved!
Go to solution

Hi,

 

The problem I am facing wihile saving the data into text file is that everytime when I am slecting the path from front panel, the data which is being saved is appended with the previous data, i.e. not only in the new text file, the new set of data is saved but also, if there is any previuos run for the program, the corresponding data is also present in that text file.

 

However, when I change the same 'control'(file path) to 'constant' in the block diagram, and add the file path, there is no such problem. Basically, changing the "File path" from constant in the block diagram to control (so that it is displayed in the front panel) is causing the problem.

 

 

Please help!

 

Thanks 

0 Kudos
Message 1 of 3
(2,450 Views)
Solution
Accepted by topic author ainat

Your shift register on the For loop is not initialized. It will retain the value of the string from the last time it executed. Initialize that and it should solve your problem.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 3
(2,437 Views)

Thank u very much. Its working fine now.

0 Kudos
Message 3 of 3
(2,427 Views)