07-13-2010 01:33 PM
When I'm trying to save my *.vi file, I receive a message: "Cannot load diagram of *.vi", and forced to click on "Cancel save" button.
After clicking, another message appear: "LabView: Cannot load block diagram", and again, forced to click on "OK" button (no other buttons exist).
Additional info - Since last saving, I have added some Global variables.
Any help is welcomed.
Thank You,
Gil
07-13-2010 01:50 PM
Your VI is corrupted - but I doubt it is due to a Global you have added. Try opening the VI by launching it with another VI which does work. If that doesn't work, you may have resort to loading from you last backup.
07-13-2010 02:05 PM
there are a few potiential reasons for this.
So to troubleshoot we need some more info
A) can you create and save a new vi?
B) can you VIEW the block diagram of *.vi on your working PC?
C) can you open *.vi on another machine?
D) is the block diagram locked? Look under VI Properties>Protection
07-13-2010 02:36 PM
Hello Jeff,
Thank you for the fast and detailed reply.
Here are my answers:
A) Yes, I can create and save new vi's
B) I can view the block diagram. More than that, this vi is running perfectly, with no issues or errors. The only thing I can't do is to save it.
C) I can open it on other computer - But it isn't up-to date, since it cannot be saved for the last 6 hours...
D) The block diagram isn't locked
Thanks,
Gil
07-13-2010 03:13 PM
Great news!
You have a corrupted VI. This means you will have to completely re-create the vi by copying a section of code at a time onto a new block diagram. (Hint: If you save after each step you'll find out exactly whats corrupted. When you copy the corrupt code you may not be able to save the new vi but you can revert to the last good save and build in the corrupt functions!)
07-13-2010 03:15 PM
One thing that sometimes works is to select the entire block diagram and drag the selection to the block diagram of a new VI. Note: do not try to copy and paste. Just drag and drop. See if the new VI can be saved.