08-17-2015 04:06 AM
Hello,
I am working on a wrapper, which automatically controls a main gui, with a lot of sub-vi:s. The wrapper starts the gui, controlls everything, makes a few changes, then it close everything down and even exits Labview. However, the next time I open LabView, I am asked if I want to recover the changes I made in the previous run. As everything is supposed to happen automatically (including the execution of the wrapper, which is controlled externally from a Java application) the shut down of LabView has to happen in a way so that the recovery dialog does not appear the next time the wrapper is started. Does anyone know a good procedure that might help me with my problem?
Best Regards,
Magnus
Solved! Go to Solution.
08-17-2015 04:44 AM - edited 08-17-2015 04:45 AM
08-17-2015 05:39 AM
Hi Gerd,
Thank you for your fast answer.
Unfortunately I have the limitation of not being allowed to use an executable, as the GUI sw isn't in a constant state (about 40 different developers are messing around with it full time). The wrapper will be run by an Java application, which is run by Jenkins whenever a new build is available and in between runs LabView have to be shut down, so I need a way of solving this issue during shut down of LabView.
BR,
Magnus
08-17-2015 05:42 AM
08-17-2015 05:52 AM
I agree, this is exactly what I am trying to do, but I am failing, so I was hoping that some would have an idea of how I may move forward.
08-17-2015 05:54 AM
08-17-2015 06:27 AM
Hi Gerd,
The Java program starts LabView (in Linux) and the wrapper is automatically executed. During its exicution, it makes changes to the GUI and at the end of the execution it stops the gui (not closing it down) and then it uses the "Quit Labview" function to shut everything down.
I suppose that I should look into closing the gui properly and not only stopping it.
BR,
Magnus
08-17-2015 06:33 AM
08-17-2015 08:31 AM
I would agree with both the recommendations to build an EXE and to exit properly, but if this is not possible, you can also disable autosave from the Options dialog (in the environment page), which I assume should stop this.
08-24-2015 11:52 AM
Hello tst,
I've accepted your answer as the solution for my problem. I added a property node that shut down the gui before I closed LabView, but the recover pop-up still appears when LabView restarts (even if the option does not appear when I close the gui with the property node). However, I disabled the autosave function and that seemed to do the trick.
Thank you to the both of you for helping me with this issue!
Best Regards,
Magnus