LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain Queue --> Release Queue

Is it true that, for a particular named queue, every time one uses the 'Obtain Queue' fx, you need to call the 'Release Queue" Fx?

I was under the impression that, unlike programmatically-generated references, the 'Release Queue' fx for a particular queue only needed to be called once, when completely finished using the queue (such as in an exit case when shutting down the program).

The LabVIEW help for 'Obtain Queue' does not indicate this situation.
0 Kudos
Message 1 of 4
(3,483 Views)
This is true, unless you create a boolean "True" on the 'Force Destroy' terminal of the Release Queue. If you do, the queue reference will be closed and any remaining calls to that queue reference will not work and generate errors.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 4
(3,483 Views)
Yes, now I do see this in the Labview help for the 'Release Queue' fx and in fact this was the strategy I was using (setting 'Force Destroy' to 'True'). Probably an annotation on this in the 'Obtain Queue' fx help would be useful.
0 Kudos
Message 3 of 4
(3,483 Views)
There is an interesting article about this topic in the latest (Volume 11, Number 4) LabVIEW Technical Resource.

Its title is : Did you know that the behavior of the queue and notifier functions has changed with LabVIEW 6.1 and 7 ?
0 Kudos
Message 4 of 4
(3,483 Views)