LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bad vi after power off

sometimes LV can't open VI if system crushed (power off) when this VI is opened by LV
this trouble appear not every time.
I had experimented with this trouble and not found any rule (about dozen attempts and no problem with vi)
But yesterday I was on customer object and system crushed (power off) twice. After second crush I had found that can't open main VI (attached).
This error was in LV6 (my first version), in LV7 fnd now in LV8 (8.3)
I'm not sure, but may by bad file is smaller than correct file (from backup).
Why this happen and how can I avoid this error?
0 Kudos
Message 1 of 8
(872 Views)
Hi Artem,

you can do only one thing:
avoid shutting your system off while programming/saving any vi's! Save before shutting down AND use backups!

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 2 of 8
(854 Views)
I don't see answer.
There are only recomendations and this recomendations do not solve _LV_error_
0 Kudos
Message 3 of 8
(847 Views)
Hi Artem,

I would not call it a LV-error when you switch-off (or crash) your pc while working... How should LV prevent from crashing?

There is no other answer than 'save early and often'! And starting from LV8 there is an auto-save option similar to MS Office (save every x mins)!
Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 4 of 8
(844 Views)
If you have that many power outages, you really, really, really, need to have a UPS on that computer. You can't recover a corrupted file but you can prevent it from happening.
0 Kudos
Message 5 of 8
(832 Views)
yes,  switch-off not a LV-error, bat bad VI - is error and very unpleasant error.
try run any program (
MS Office, for example), open any file and switch-off power.

I never see bad file after so "joke". only LV can do it. WHY?

I work under WinXP and have NTFS, so file not corrupted by system, it corrupted by LV.

I have UPS and routinely save vi and make backup., but this only protection, not correction of error.
0 Kudos
Message 6 of 8
(826 Views)
Congratulations! You are one of the few people in history that has never lost an office file or had damage done to the OS when you lost power. I hope your luck continues.
Message 7 of 8
(824 Views)
If your system crush, you can lost _part_ of you office file (part that not saved), but yot can lost _all_ vi (even you save it 1 second ago).
0 Kudos
Message 8 of 8
(820 Views)