ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
11-20-2005 07:47 AM
11-20-2005 08:48 AM
11-20-2005 08:49 AM

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.11-20-2005 08:14 PM
It has less to do with memory management than with your program logic.
It might make sense for you to have a limit on the number of jobs this queue can handle.
If the size is -1, then any ENQUEUE ELEMENT operation will succeed immediately (assuming you don't actually run out of physical / virtual memory).
If the size is N, then an ENQUEUE ELEMENT operation, when the queue is full, will wait for some specified time. If a slot in the queue does not become available in that time, the ENQUEUE ELEMENT will return an error. If a slot does become available, it is used.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
11-21-2005 07:16 AM
I agree with CoastalMaineBird, queue limits are implemented to signify that a dequeuing (or the queue itself) has some limited resource. This is somewhat like going to the movies, when they stop anyone from entering the line once it is longer than the number of tickets that can be sold. In most cases the resources (usually memory or some I/O resource) is large on current systems and is not a problem. I have used the queue limit for simulation to simulate a limited resource (even though there is no physical limitation) so it a nice feature to have even if you never use it.
Paul