08-25-2005 05:27 PM
08-25-2005 07:52 PM

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.08-26-2005 06:42 AM
08-27-2005 09:11 AM
08-29-2005 10:26 AM
For the sake of completeness, there's one other option you might consider that's very similar to a queue in functionality and implementation, but has a slightly different slant: the notifier.
Notifiers allow for communication between multiple loops without the need for polling, just like queues. The difference is that notifiers don't have the inherint buffering capability that queues have. Only one data item can be stored in a notifier at a time, and if it gets overwritten before it's read by a consumer loop, then it's lost forever. It is possible, however, to send and wait on multiple notifications at a time.
Notifiers are optimal for applications involving one producer loop and multiple consumer loops, since multiple loops can read the data item without removing it, unlike the queue. The consumer loops don't have to poll, since they are "notified" that a new piece of data is ready for them to process.
Notifiers are located in the synchronization functions palette.