LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get all elements of queue in RT

To get all elements of a queue at the same time, would you recommend using a standard queue and "Flush queue", or a RT FIFO and a loop which reads all elements one by one, or something else? In my appl queues are big and speed is important.
0 Kudos
Message 1 of 3
(3,264 Views)

The method adapted can be related to size of the queue.  if size is too large then just read elements one by at a faster rate if the elements are too low in the queue then flush queue is preferable.  Because the flush queue returns some complex output like Array of cluster arrays [for array data type] which is again a tedious task to unbundle and seggregate the elements.

 

So for larger number and complex data types read elements one by one..for smaller elements flush queue is prefarable.

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Message 2 of 3
(3,259 Views)
Thank you, for now my elements are simple (scalar numbers) and i managed to limit queue size to 1000. I'm doing good enough with Flush queue.
0 Kudos
Message 3 of 3
(3,241 Views)