LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2014 Deleted my VI ! HELP!!!!!

Solved!
Go to solution

Here's what happened:

I opened my main.vi code from my Labview project file and made a few changes to my code. I tried to save it and close the FP but an error message popped up saying that it can't save.

So I just closed the VI without saving. A few minutes later I opened my project and it could not find my main.vi. I looked at the directory that it was saved on and the file is gone! Looks like LabVIEW deleted my file...!

 

Has anyone seen this before? Any solutions?

 

The file is nowhere to be found! I even did a search and looked at my recycle bin. It's GONE!!

P.S. This is on my work computer and I do not have access to hard disk recovery software and such...

I would greatly appreciate any help. It would save me days of work.

0 Kudos
Message 1 of 19
(5,363 Views)

Can you check this directory to see if a copy is in there:

 

My Documents\LabVIEW Data\LVAutoSave

 

If not, I think you're out of luck.

0 Kudos
Message 2 of 19
(5,351 Views)

Did you point to a location where you don't have write permission?

What was the exact error message when you tried to save?

Was the VI on the local HD or on a network location?

Who else has access to that location?

Why do you assume the LabVIEW deleted your file?

Did you scan your HD for errors?

0 Kudos
Message 3 of 19
(5,325 Views)

@Kyle97330 wrote:

Can you check this directory to see if a copy is in there:

 

My Documents\LabVIEW Data\LVAutoSave

 

If not, I think you're out of luck.


The project is there. But not the main.vi file.

I searched my whole hard drive. No luck 😞

0 Kudos
Message 4 of 19
(5,313 Views)
think if you rename it
also check the place that you have AutoSave temp file you can find where is that in your LV option
also check open recent files
and if you could not find
it is bad new you miss it some times it happen and you have too
learn that make back up step by step from your codes
maybe you loose them
0 Kudos
Message 5 of 19
(5,307 Views)

@altenbach wrote:

1.Did you point to a location where you don't have write permission?

2.What was the exact error message when you tried to save?

3.Was the VI on the local HD or on a network location?

4.Who else has access to that location?

5.Why do you assume the LabVIEW deleted your file?

6.Did you scan your HD for errors?


1. No. I have full permissions on the directory. It's the same directory I had my project and the rest of the subVIs saved.

2. I wish i remembered the exact wording of it. It basically said it can't save the changes to the VI so I closed it. Then closed my project. & the main.vi file was gone!

3. Local HD

4. No one

5. Just an assumption! But mostly because of the can't save error message that it gave me.

6. Can't check. I needs admin rights and it is almost impossible to get it where I work.

 

P.S. It was my first time seeing that error message from LabVIEW. Just very strange how it could not save changes to a working VI in a directory with full access.

The main.vi file was created in that same directory and modified many times... worked just fine.

0 Kudos
Message 6 of 19
(5,304 Views)

@Hatef wrote:
think if you rename it
also check the place that you have AutoSave temp file you can find where is that in your LV option
also check open recent files
and if you could not find
it is bad new you miss it some times it happen and you have too
learn that make back up step by step from your codes
maybe you loose them

Nope. It has not been renamed.

AutoSave file does not have it. Recent "Windows" files has the icon but can not locate it. It tells me that it has been deleted.

 

I'm not really worried about the portion of the code that I couldn't save.

The main.vi file is what I'm worried about.
That was my backup and that file was created a couple weeks ago... Just to be clear, I didn't loose just a postion of some code open in a new VI that's not saved on the HD.

I lost the actual VI file which was deleted by LabVIEW or Windows 7 "ghosts"!!

0 Kudos
Message 7 of 19
(5,291 Views)

check if you rename it unconsciously 

check your auto save temp file you can find it location in your LV option 
check your recent file open 

if not yet

bad new you loose it 

but it is good experience that

 you learn to save back up step to step

regard that may you loose your could somehow someway 

 

Message 8 of 19
(5,289 Views)

We've all been there (not specifically with LabVIEW) but having data lost can be a big deal, especially at the worst time, like when the data is critical to starting something on time.  It hasn't been mentioned yet but I assume you don't have any source code control.  I hope like others have said that you learn to use source code control in the future to prevent this from happening.  Not to minimize the fact that this shouldn't happen, but if it does you should have some kind of plan other than re-create the code.  Sorry all my other suggestions have already been made in this thread.

Message 9 of 19
(5,265 Views)

@Hooovahh wrote:

We've all been there (not specifically with LabVIEW) but having data lost can be a big deal, especially at the worst time, like when the data is critical to starting something on time.  It hasn't been mentioned yet but I assume you don't have any source code control.  I hope like others have said that you learn to use source code control in the future to prevent this from happening.  Not to minimize the fact that this shouldn't happen, but if it does you should have some kind of plan other than re-create the code.  Sorry all my other suggestions have already been made in this thread.


I totally agree with you on Source Code Control.

What really bothers me is that I lost the file with no software crashing.


LabVIEW did not crash on me,

Windows didn't crash either!

My Hard Drive seems to be fine. All the SubVIs in the same folder are working fine, nothing else got deleted!

At this point I'm very curious to know what caused this and if anyone else has experienced this before.

0 Kudos
Message 10 of 19
(5,253 Views)