03-24-2009 04:39 PM
I want the user to start my executable by clicking on the run arrow. The way my executable works now is that the program starts running automatically when the executable starts. I tried changing the VI properties, but I haven't been able to get the results I want. Any ideas?
Thanks in advance.
03-24-2009 04:43 PM
When you set the properties in the builder for the .exe, go to the advanced tab and select enable debugging and also Wait for Debugger on Launch.
There may be other ways of doing this, but this is one I just used becaused I needed to do those exact things for the remote debugging I wanted to do.
03-24-2009 05:35 PM
03-24-2009 05:43 PM
03-24-2009 07:39 PM
Once a LabVIEW program is built into an executable, it should act more like a regular windows program. The run button is part of the development environment and users should not need to do any LabVIEW specific mouse gynmastics to run the program. What good is an non-running exeutable? You cannot edit it anyway!
The correct way is for the executable to have the toolbar hidden and to be set to run when opened and close itself when done. Typically, the program should start up in a wait state and then execute other states as directed by the operator. An executable that is not running makes little sense. When was the last time you stopped and started a non-labview executable?
Can you tell us your reasoning why you want to set it up like that?
03-24-2009 11:26 PM
Although I agree with your post, for the most part, altenbach and follow those practices when making LabVIEW applications for other people... I've been in a situation where I needed a compiled VI not running at start up. I needed a quick-and-dirty producer consumer data recorder for my own use for a test. My priority was getting the testing done for the client, and having my labview application run on a computer that had specific hardware but not labview. My priority was to get the job done, not play in labview for those 5 extra unnessary minutes.
I know a lot of you are trying to engage people to think critically about what it is they are trying to acomplish...but just because YOU think something should be someway inparticular doesn't mean that it is the best way for all situations. Thank God NI sees it that way as well, and gives the developer flexibility to have it the way they want it.