LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stopping an event sequence

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?

Message 21 of 28
(1,269 Views)

@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 Smiley Tongue 

 

PS:  Please don't try this at home or at work

- tbob

Inventor of the WORM Global
0 Kudos
Message 22 of 28
(1,252 Views)

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.

0 Kudos
Message 23 of 28
(1,244 Views)

@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! Smiley Very Happy

- tbob

Inventor of the WORM Global
0 Kudos
Message 24 of 28
(1,236 Views)

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.

 

0 Kudos
Message 25 of 28
(1,228 Views)

you know just hitting the stop button works

0 Kudos
Message 26 of 28
(1,212 Views)

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.

- tbob

Inventor of the WORM Global
0 Kudos
Message 27 of 28
(1,204 Views)

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.

0 Kudos
Message 28 of 28
(1,183 Views)