Using LabVIEW 7.0, is it possible to add an element to a LabVIEW queue from with a dll written in C?
I'm using the queue as a synchronisation mechanism - it's a bit complicated, but I call a dll function which produces data. When it gets a new set of data, it sets an occurrence which my LabVIEW VI is waiting for (using WaitForOccurrence). Essentially, I need to add an element to the queue to indicate that the occurrence was set from within the DLL and not by LabVIEW (since I need to set the occurrence when I want to quit, otherwise it will wait for the occurrence forever!) I've tried lots of different ways to handle this, and this is the only scheme that works - at least, it works within LabVIEW, with one VI produc
ing data (simulating the dll). The trick is to now get it working with the real dll.