Pawel Kowalski wrote:
Cool, that works. So the dequeue function works like the wait function?
Not really, because if the upper loop places an element in the queue, the wait is interrupted immediately. It really depends what kind of behavior you want.
You should attach your VI instead of a picture, it will help us to quicker troubleshoot the issues. You should also play with execution highlighting.
Do a forum search for e.g. "dataflow". It is important to understand its basic ideas.
In this particular case, the queue is overkill and only complicates the code. I would use event structures (or even local variables to communicate). You also forgot error handling and you're not releasing the queue at the end.