LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW prompts to save the vi when closing the reference

Solved!
Go to solution

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 

 

0 Kudos
Message 1 of 9
(4,955 Views)
Solution
Accepted by topic author SAS

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 

0 Kudos
Message 2 of 9
(4,945 Views)

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

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 9
(4,928 Views)

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.

Quentin "Q" Alldredge

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



0 Kudos
Message 4 of 9
(4,494 Views)

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.

CLED (2016)
0 Kudos
Message 5 of 9
(4,333 Views)

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

0 Kudos
Message 6 of 9
(4,296 Views)

Thanks. Do you know if there is a CAR for this issue? I'm not even using any scripting, just the normal VI server.

CLED (2016)
0 Kudos
Message 7 of 9
(4,286 Views)
I do not know of a CAR for this. I couldn't ever get it to be easily reproducible so I never talked to NI about it.
0 Kudos
Message 8 of 9
(4,278 Views)
Oh by the way for me I found it on LabVIEW 2011 SP1
0 Kudos
Message 9 of 9
(4,277 Views)