08-28-2005 08:40 PM
08-28-2005 10:11 PM
08-28-2005 11:09 PM
Hi
Just as a reference, you can select from function palette > All Functions > Application Control > Quit Labview.
Goy
08-29-2005 02:11 AM
Like Altenbach said, if you don't want the user to have any access to LV, you should uninstall it and build an application instead.
If you want to keep LV on the computer, you can password protect the VI by selecting File>>Save with Options. That way the user will not be able to modify the VIs.
If you do build it as an executable, you can use the attached VI, which will quit if you are running an executable or not quit if you are in LV.
08-29-2005 06:27 AM
Thanks for the great feedback guys. I think what I want to do is just call Quit Labview.
John
08-29-2005 07:06 AM
ne word of caution, If you don't want to build the application (because you don't have have app builder?) if you make the application run on load and quit of termination, by calling the exit application vi, future debugging can be a pain. Do this only when you are done testing, otherwise it can be tricky to get back in your code. I had quit this way in the past, and I had to break a subvi to get back in my code since it ran when I opened the main vi and quit from LV on termination, essentially locking me out of edit mode, don't lock your code too tight if you plan to maintain it. I would agree though that the app builder is well worth the investment if you plan on any distribution of your program. The app builder is a great tool and is so simple to use, unlike make files and builds in many other languages and environments.
Paul
08-29-2005 07:29 AM
08-29-2005 07:37 AM
Along these lines, Bloomy Controls has a nice VI that is a conditional stop. It queries LabView to see if it is the run-time or the full version, and will stop the VI if it's the full version or quit if it's the run-time. A simple VI that makes development and debugging easier for apps that you will ultimately deploy as a run-time.
Here's the link:
http://www.bloomy.com/resources.php
Sheldon
08-30-2005 07:48 AM
Sheldon,
The conditional quit is a great idea, why didnt I ever think of that. I usually avoid the exit command because of the debugging problem (ie quitting on normal execution while testing the vi). Thanks for the link.
Paul