Jump to content
News about the LabVIEW Wiki! Read more... ×
JamesMc86

Programmatically Exit Without Save

Recommended Posts

Hi,

 

I'm working on a build server to be launched from Jenkins and a plugin to smooth the use of Jenkins with LabVIEW. I hope to post some results soon!

 

One problem I am having. I wanted to distribute the build server as source code as it will enable additional features in the development environment over a built EXE. To aid the process, rather than distributing multiple versions and have to create a new distribution for every version.

 

The problem with this is that when it tries to exit, unless it is in the version it was created in (2011) it prompts for a save. I'm sure I saw some option somewhere to sliently close LabVIEW without a save dialog but cannot find it anywhere!

 

Was I dreaming or is there something in Scripting/Super Secret Stuff which could do this?

 

Cheers,

Mac

  • Like 1

Share this post


Link to post
Share on other sites

You could fake the execution state (set it to stopped=2) set the 'DoNotShowSavedChangesDialog' to True and then invoke FP.close.

 

Smells like something, maybe that is why there is so much brown on the BD.....

Share this post


Link to post
Share on other sites

How do you open the VI?

If you have a deamon application that connects to your LabVIEW via VI Server (I would give each LV instance it's own TCP/IP port), and then use the Open VI Reference node it should not display the dialogue per default.

 

Ton

Share this post


Link to post
Share on other sites

In this thread I posted a VI that wraps a private function to suppress LabVIEW dialogs. Standard disclaimer here about using private functionality in production code, etc. etc.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use.