02-02-2015 09:41 AM
Hi
I am developing an application using event structure and queues. I have some queues, working in parrallel. At the moment everything is working fine. I would like to show you my code, presenting how I synchronize queues. Could you please tell me if my work with queues is correct or I am wrong somewhere?
I am using almost everywhere bundle by name and unbundle by name structures thus reducing the usage of local variables. Is it correct this kind of programming? I am using "property node -> values" instead of "local variables". Is it correct too or I have to reduce the usage of "Property node->values"?
Best regards
02-06-2015 11:47 AM
Hi,
Using queues is always a good Ideea. Using the value property instead of local variables is justified if you need to preserve the data flow and avoid the race conditions, otherwise there is little difference from the point of view of performance.
However a good suggestion would be to use more SubVIs at the initialization part, and inside your event structure, to avoid excesive wiring. Also, you could put all the references of you queues inside a cluster - this way you could pass a single wire ( the cluster ) between loops and use the appropiate reference when needed.
Regards,
Denis