09-09-2009 07:30 AM
In our application, we - Open vi reference - finding its execution state - closing the vi reference. While closing, LV prompts to save the vi, how to avoid it. I can see option to enable LV prompt, but no option to skip it. We use 0x20 for now to avoid the loading dialog.
We appreciate your input
Thanks
Sas
Solved! Go to Solution.
09-09-2009 07:46 AM
Looks like when leaving the option to 0x0 or using anyother option other than 0x4, it should not prompt the user to save the file. But for some reason, i have faced the user prompts to save the file ...Dont know why!!! but got the solution now 🙂
It will be good to know why i got the prompts even for option 0x20!!!
Thanks
Sas
09-09-2009 02:18 PM
The only reason why I would think a VI would have that prompt is if something changed. Sometimes a sub-VI gets loaded from a different path than when the VI was built. Did you ever click on "Explain changes" when the save option comes up? That usually explains why the VI thinks it needs to be saved.
Bill
12-05-2013 10:06 PM
FYI
The VI will be considered "changed" if it had been saved in a previous version of LabVIEW and is being opened in a newer version, even if nothing else has changed.
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner
05-12-2014 02:01 PM
What was your solution? I'm seeing the same issue. I'm opening the VI and closing it with VI server and it's asking me to save. It is correct in that the VI was modifed and does need to be saved but I did not use the 0x04 option and it should not ask me to save.
05-15-2014 03:39 PM
I have seen this in the past with scripting VIs and I tried to resolve it but couldn't. So my solution was just to supress the dialog temporarily. Darren posted over on LAVA a VI that does this.
http://lavag.org/topic/17845-silently-close-a-scripted-vi-with-unsaved-changes/#entry107546
I believe this just calls the private method App.UnattendedMode
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-15-2014 05:13 PM - edited 05-15-2014 05:14 PM
Thanks. Do you know if there is a CAR for this issue? I'm not even using any scripting, just the normal VI server.
05-15-2014 06:03 PM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-15-2014 06:04 PM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord