LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How many instances can access the same queue at the same time ?

Hi,

In my application I am cloning a VI n times and these n instances are accessing the same queue. Is there any restriction on this 'n' for successful operation.

 

Regards,

Runjhun

0 Kudos
Message 1 of 3
(2,359 Views)

Runjhun,

 

If the accesses are to enqueue data, then no limit (beyond the number of VIs which will fit in memory).  If you are dequeuing, then n =1. Dequeue removes data from the queue and you would have no way to know which of the n VIs got which element from the queue.  Read the deteiled help for the queue functions.  If you need to read the same data in multiple places, you need some other mechanism.

 

Please tell us more about your application.  What kind of data and how much data are in the queue? How fast is the data being generated? How long must the data persist (be availabel after it is generated)? Do you need to guarantee that all the VIs get the data?

 

Lynn

Message 2 of 3
(2,350 Views)

If you have several consumers you'll need to divide the work somehow and use the Look at queue to filter out events. As ex. if you have 2 slow events they could be in separate loops, but i'd say it'd be a better design to use different queues or events for that.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(2,337 Views)