LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview: End of file encountered

I was developing this VI in LV8.0.1 that had several event cases in a while loop with a timeout event loop. Accidentally, I used "Write to text file" function from File I/O in the timeout event case.
 
When I executed my VI, it started prompting me for the file to write continously. It would not stop even I select cancel on the prompt screen. So, I went into the task manager and killed the whole Labview VI. In doing so, my VI size is now 0kb and when I try to open it again, it gives me the following error:
 
Labview: End of File encountered
The file 'Command_setup_writer.vi' is not a valid Labview file.
 
Please, anybody has any idea as to how can I recover my lost work, I would really appreciate it. It's worth 3 weeks of work in that VI. Please help me, or I am doomed..!
Message 1 of 3
(6,256 Views)
I'm not sure if someone rewarded you with five stars because this is a good question. It certainly couldn't be because going three weeks without making a backup is a good idea.Smiley Wink
 
Ni has been able to recover some corrupt files but the 0kb size is not a good sign. The best you can do is to post the VI and see what happens.
0 Kudos
Message 2 of 3
(6,236 Views)
Sorry, I think the 5 stars was me and it was completely unintentional. Some slip of the mouse. Must have hit the wrong area when I tried to put the browser window in the foreground. Sorry. 😞
 
Could it be that you were actually trying to write to the file "Command_setup_writer.vi"?
0 Kudos
Message 3 of 3
(6,224 Views)