_Y_ Posted October 24, 2014 Report Posted October 24, 2014 (edited) Hi all, I got a strange queue behavior that is probably related to race conditions. The problem is eliminated (a way around is found), so there is no need in a quick solution. However, I would be happy to understand reasons for such a phenomenon. BD of the “problematic†VI is attached. The queue size is limited to 1. The program consists of multiple asynchronous processes. Execution reaches the Enqueue Element node than stops. The timeout never happens; the program hangs. However, there is more. If I try to execute the VI step-wise, everything works fine until the execution enters the internal Case Structure. When it enters, three Stepping buttons become disabled. If I try to decompose the program, i.e. to use the same VI in a simple single-process program, both problems disappear. Have you encountered such a strange behavior? Any ideas that can help to the poor creature (me) to avoid sleepless nights? Edited October 24, 2014 by _Y_ Quote
eberaud Posted October 24, 2014 Report Posted October 24, 2014 By "no timeout" you mean the enqueue element doesn't exit after 30s? Quote
_Y_ Posted October 25, 2014 Author Report Posted October 25, 2014 By "no timeout" you mean the enqueue element doesn't exit after 30s? Yes, it does not exit after 30s or even after lunch. Quote
eberaud Posted October 27, 2014 Report Posted October 27, 2014 To me this is not a race condition. A race condition would for example cause the dequeue function to be called before the enqueue function while you intended otherwise. But the fact that a function doesn't time out while it's supposed to is a bigger issue... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.