08-21-2015 03:29 AM
Periodically I get a popup saying that a VI has changed on disk since I loaded my project. I can't see how this might happen as it is only me working on this project. The annoyance for me is that the only options are revert or cancel. I tried saving the project, but I still got this error on trying to run the VI. In the end I gave up, crossed my fingers, and selected revert. What would be more helpful would be if LabVIEW gave me the options to display both versions of the VI so I could decide which I wanted to run with, save it and delete the other. Far more helpful.
08-21-2015 07:00 AM
@Barionics wrote:
Periodically I get a popup saying that a VI has changed on disk since I loaded my project. I can't see how this might happen as it is only me working on this project. The annoyance for me is that the only options are revert or cancel. I tried saving the project, but I still got this error on trying to run the VI. In the end I gave up, crossed my fingers, and selected revert. What would be more helpful would be if LabVIEW gave me the options to display both versions of the VI so I could decide which I wanted to run with, save it and delete the other. Far more helpful.
Try Ctrl+I Look at the "General" page and see if the vi needs to be re-linked (if looking at a previous version) or re- compiled
08-21-2015 08:10 AM
Well, you can do this, but it takes a little effort. Suppose you get the message that MyVI (which you didn't think you changed) is different from the one on disk, do you want to Save or not (is that the nature of the message)?
Digression -- if this happens in the context of closing the Project, there's something you can click that can tell you what changed. If it is simply "VI recompiled", you can save-or-not-save, as I don't believe the VI, expressed as a LabVIEW diagram, has been altered.
Anyway, if you want to see if there's a change, you can use the Compare Tool (found on the Tools menu). However, the VIs you compare need to have different names. So first rename the VI on disk (to, say, MyVI.tmp.vi). Now compare MyVI.vi (in memory) to MyVI.tmp.vi (on disk) -- if they differ, you can choose which to keep. If they're the same, you can choose which to keep. Don't forget to handle the renamed file on disk.
Bob Schor
08-21-2015 08:16 AM
Do you "Save All (Project)"?
08-21-2015 08:51 AM