07-20-2010 08:55 AM
Solved! Go to Solution.
07-20-2010 09:34 AM
Do you have a doubt meaning you don't believe you can do something? Or do you have a question, where you want to ask how to do something?
If your issue is that when you start your VI, you have default values defined in controls and you don't want your code to run until you've had a chance to change your controls, then you just need to program it that way. Have your VI start, but be in a loop where you do any preliminary things (like update a menu based on the value in a control), and that loop will stop whenever your user has hit some sort of Go button, at which time the while loop ends, and your program will enter into the next portion of your code where all the real work of the program is done.
07-20-2010 10:06 AM
07-20-2010 10:27 AM
07-20-2010 10:35 AM
07-20-2010 10:43 AM
07-20-2010 06:59 PM
07-20-2010 07:23 PM
Put a while loop around the entire VI and add a stop button to stop the big loop. When your code finishes running, the VI will wait for the GO button to start again, or for the Stop button to stop the program.
07-20-2010 07:33 PM
07-20-2010 08:47 PM
If your looking for a Go, Stop, Go, Stop, Exit for good type of architecture, now you really need to get away from the separate loops. Because if you hit the big stop button while you are in your initial waiting to run loop, your program won't end until you hit the Go, then the Stop button.
At this point you should be looking into a state machine architecture where you have at least 2 states of Wait and Run, and hitting your Exit button would allow you to get out of either state as the case may be.