06-02-2010 07:39 AM
06-02-2010 07:46 AM - edited 06-02-2010 07:47 AM
Hi wb2nvy,
who knows?
Maybe due to
- changes in referenced files
- loading a VI from an older LV version, so recompilation occurs
Have you check why LV wants to save? You always have to option to do so...
06-02-2010 07:54 AM
usually this happens due to VI recompile on open and close... but yeah you can check the reasons by click on list unsaved changes on dialog box..
hope it helps
HS
06-02-2010 08:09 AM
06-02-2010 08:22 AM - edited 06-02-2010 08:24 AM
Hi wb2nvy,
why should LV save those subVIs on it's own? You may have to check the old subVIs for changed functionality before saving... (Compare this to a C development environment: when you change one main.c-file do all other sub.c-files get saved?)
Why should LV generated an error message, when the old subVI is executable? You already get a warning to save the recompiled VI...
Edited:
When upgrading to a new LV version I usually make a complete backup, then copy all VIs to a new folder, then do a MassCompile for this folder. Now you have all VIs in the new version and get all possible warnings for changed behaviour...
06-02-2010
08:38 AM
- last edited on
07-08-2025
07:00 PM
by
Content Cleaner
Hey wb2nvy,
There is one document explaining to mass compile VIs... or forced recompile ... May be something you like to read ..
Regards
HS
06-02-2010 09:13 AM
Thank you H Sh. I checked the first link you attached and found this:
"When you open a VI last saved in a previous version of LabVIEW, LabVIEW automatically converts and compiles the VI. You must save the VI in the current version of LabVIEW "
So when I save this main vi (after it is automatically converted and compiled), it apparently only saves the recompiled MAIN vi and not the subvis that comprise it, correct? All the previous version subvis remain previous version unless I specifically recompile them separately, or do a mass recompile? Why would anyone NOT want to include the subvis when the main vi is recompiled to a newer version?
06-02-2010 09:22 AM
06-02-2010 09:35 AM - edited 06-02-2010 09:37 AM
Hi wb2nvy,
"Why would anyone NOT want to include the subvis when the main vi is recompiled to a newer version?"
Maybe you have linked to subVIs also used with the older LV version and so don't want to save subVIs automatically?
As said before: no other IDE I know of automatically saves referenced files to a newer version...
And:
You should get asked to save subVIs before closing the mainVI. You always have the option to save them. You always are presented with reason why LV wants to save. You always have to decide between saving or not saving... You always have the mass compile option.
It's your duty to decide when to upgrade VIs - LV will and cannot take that decision!
08-30-2010 07:07 PM
I have a large program and lately, everytime I open the main file it recompiles it and when I exit without making any changes, it wants me to Save the file. I have not upgraded or changed the LabVIEW application. If I Mass Compile or do a "Save All", I still am prompted to Save the VI before exiting.
I checked the "List Unsaved Changes" and the "VI Recompiled" and "sub vi call(s)" are shown as being the changes right after I do a "Save All".
I am using LV 8.5 on an WinXP PC. Any help with this annoying problem would be appreciated.
Michael