07-13-2010 08:51 PM
How do you stop the VI at all considering you have at least 8 stop buttons and they are all hidden on the front panel?
07-14-2010 11:00 AM
@Ravens Fan wrote:
How do you stop the VI at all considering you have at least 8 stop buttons and they are all hidden on the front panel?
You press the abort button, silly
PS: Please don't try this at home or at work
07-14-2010 11:17 AM
If all fails simply hit the reset button at the front of the PC, or pull out the AC cord from the wall. Just make sure you save the VI before running it.
07-14-2010 12:30 PM
@Ray.R wrote:
If all fails simply hit the reset button at the front of the PC, or pull out the AC cord from the wall. Just make sure you save the VI before running it.
Tres drole, mon cousin! ![]()
07-14-2010 01:25 PM
Oh.. I forgot to mention the ctrl-. (control key + period).
It's a good trick to know before the reset button or disconnecting the AC cable.
And there's the Alt-Ctrl-Del (on windoze) to get the Task Manager and killing the process.
07-14-2010 05:18 PM
you know just hitting the stop button works
07-14-2010 06:11 PM
You have 8 stop buttons and all of them are hidden. The only way to stop your code is to press the Abort button. It is the one on the menu bar that looks like a stop sign. This is NOT the proper way to stop a vi. It is NOT a stop button. It is an ABORT button used to stop a runaway vi. When you use the Abort button, your code stops in the middle of its processing. Loops are incomplete, any references are still hanging, if you turned on any power then it is still on.
There are a whole bunch of reasons for not using the Abort button to stop a vi. Besides, it is just bad programming style. You really need to learn about state machines and event structures, where one boolean Stop button (the one from the boolean controls palette) can graciously stop the vi. When the user presses this stop button, the vi should perform any clean up action before exiting.
07-15-2010 07:33 AM
jastel,
tbob is right. In any sw langiage, you need to gracefully stop a program. In some cases, memory leaks will occur and if you run and stop the program consecutively, you will eventually have to re-boot the machine.