06-23-2009 10:41 AM
I am using the Quit LabVIEW vi and am getting the Save/Don't Save/Cancel dialog each time the operator quits the program. The reason is objects on the screen have been resized. The vi properties for window appearance are scroll bars off. This is a base development package so the program runs in the environment. I would like to allow the operator to exit without seeing this message. LV 8.5, Win XP
Thank you.
Solved! Go to Solution.
06-23-2009 11:09 AM
06-23-2009 11:20 AM
sfm,
The best way to do this is by incorporating a source code control depository. Set your LabVIEW.ini options to configure the source code control and to treat read only vi's as locked. Edits will only be allowed if the code is checked out of source code control and that prevents the operator moving or resizing the FP objects accidentally. You should not allow your operators to make code changes! Operators operate, developers edit code. It is common to have operators who are also developers BUT, the functions must be kept separated.
What I mean is that the user is either trying to make the code do what it needs to do (developing - so code changes are desirable.) OR the user is trying to use the code to do its intended function (operating - so code change is not just undesirable, it is BAD!)
The pop-up is not just annoying, it indicates that code control does not exist! You need better logistics to prevent code maintenance headaches of biblical proportions.
06-23-2009 11:58 AM
I have not tried this my self. But if you saves the VI/VI hierarchy without diagram it can not be edited. And perhaps it then will stop asking.
DO THIS ONLY ON A SAFE COPY. Also take an extra backup before you even think about it. If you remove the diagram it will be lost for ever. And you will never be able to edit or transform to newer versions
06-23-2009 04:10 PM
Thank you all for your quick response. I am having some trouble inserting/uploading the image of the vi area in questions but simply "Are you sure you want to quit" to a yes no dialog. If yes, true, then to the EXIT LabVIEW vi. This Save/Don't Save/Cancel message box then appears. The vi is set to run automatically, (icon on window's screen), and if quit is selected and then YES even before anything else the message appears. (Program starts, select File on the menu, select Quit, select the YES button. {custom menu with only 3 items}) There is no movement of FP objects by user/operator/programmer but must be by LabVIEW when starting on the screen. In edit mode the scroll bars are on there, when running the scroll bars are not there. I see some screen resizing when the program is stopped or if I start it from LabVIEW due to the scroll bars removal and replacement. I understand I need to lock or password the code once the design and debug phase is complete.
06-23-2009 04:17 PM
06-23-2009 06:22 PM
Looking at the unsaved changes above the save/don't save/cancel buttons it states that there are objects resized. I am guessing that since this is running on a 19" wide screen there are some changes. However it must be stated that the development has been on this same system with the 19" wide screen. The original development was on a 15.4 notebook but that was many generations, and many saves, back and for the past several weeks all work has been done on the 19" wide screen system. Nothing on the diagram has changed with respect to code change. I realize that there is some code involved in the setup of the user interface but the actual diagram is not changed. Also whether the save or don't save is selected it does not effect the vi the next time it is run. In other words if save is selected, Labile exited, the vi run again, the same prompt sequence occurs when quitting again.
06-23-2009 10:09 PM
sfm_dsi wrote:
The reason is objects on the screen have been resized.
Like Jeff has already mentioned, Operators must not meddle with the VIs.
So, just tell them not to resize FP objects before running the VI. since they cant do so while running.
06-24-2009 06:31 AM
06-24-2009 06:41 AM