PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do Obtain Queue gets every time a NEW REFERENCE to an EXISTING QUEUE?

Hello I'm using RT-FIFOS and QUEUE's in my application. When I use the Function RTFifo Create, I can get the reference to an existing Fifo. And this is exactly the same Reference which was created the first time.
However, Obtain Queue has a diffrent behaviour. Every time when called, it gets a new reference to the existing queue. In my view, this is a wrong behavior. (It's not the same like in the German documentation....)
0 Kudos
Message 1 of 2
(2,975 Views)
It is not actually getting a new reference but it is incrementing an internal count as to the number of queue instances for obtain. Every Obtain bumps the internal count by 1 and every close decrements the count by 1. Every Obtain should be paired with a close. When your number of instances goes to zero then the queue is destroyed.

It is not using up more resources. This change occurred in LabVIEW 7.0.
0 Kudos
Message 2 of 2
(2,950 Views)