LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the preferred way to stop multiple loops?

VeeJay,

 

References and Value property nodes are not very efficient ways of doing things, but you do not need a lot of efficiency for Stop.  The major disadvantage of this method is that it does not allow an orderly shutdown.  Using the Warm Up task as an example again, consider that stopping during warm up requires not just terminating the loops but also writing a shutdown command to the external system.  This may need to be done before the loops stop. In fact it may require passing though several states before stopping the program.

 

This is why I prefer to send a Shutdown command to the state machine and let it decide what things need to be done for an orderly and safe shutdown.  After everything else is in a safe condition, then stop the loops.

 

Lynn

0 Kudos
Message 51 of 51
(490 Views)