11-15-2009 07:02 AM
My application hangs in Enqueue Element at Opposite End.VI. Before this happens the Queue ist split and passed to a subVI which performs some image aquisition from a camera using a third party DLL. The Queue is passed to that subVI to allow stopping the image aquisition from the front panel (The queue is watch by Preview Queue Element). Normally that subVi finishes after a given number of images. What could be the reason for the endless waiting in Enque Element at Opposite End?
There weren't any problems in previous versions of the program with the same architecture.
Did someone experienced similar problems?
Regards,
Jörn
11-16-2009 03:53 AM
11-16-2009 04:32 AM
I am working with LV 8.6.1f1
Four months ago I converted the project from LV 8.5
11-16-2009 04:38 AM
Is there a certain limit on the length of the queue? This can be set at 'Obtain queue'.
If you add a time-out to the 'Enqueu element at opposit' does the primitive time out?
Does the 'Get Queue status' indicate an enqueu action is waiting?
Ton
11-16-2009 05:24 AM
The queue length is ten elements. When the VI hangs there is one element in the queue.
The primitive times out if timeout is wired.
I have to check what the Queue status indicates.
When the image aquisition is started also the front panel of the main application hangs. But when the image aquisition is finished another SubVI is called which requires user input. There is no problem with user action in this SubVI. After that the Enqueue element at opposite end is called.
11-16-2009 07:51 AM
Try setting both VIs to a different thread (VI properties, execution). I think the DLL call to the sub-vi locks the user thread totally.
Ton
11-16-2009 08:36 AM
Ton , thank you, for your kind help.
The location where I placed my Get Queue status was not optimal. It was before starting the image aquisition subVI. I moved it into the aquisition VI and found that the queue is unnecessarily messed with elements while running the image aquisition VI. Now I removed the generation of the additional queue elements and it seems to work. But I will return to the forum with further information.
The aquisition VI and the UI were already in different threads.
Regards, Jörn