在 10-04-2010 10:52 AM
在 10-04-2010 10:54 AM
I generally agree with the example smercurio gave.
Have a "main" while loop that makes a queue to pass to the other loops.
When the user wants to stop the VI, the main loop will control the order in which the rest of the code should stop.
I like using queues or notifiers.
Never Locals..
I might use a ActionEngine if it is used to propagate status or events.
在 10-04-2010 12:49 PM
Generally i avoid queues, not sure why lol But i like this answer. Simple and elegant.
Thanks Stuart