09-05-2007 07:57 AM
09-05-2007 08:39 AM
09-05-2007 09:35 AM
09-05-2007 01:44 PM
09-05-2007 02:50 PM
Valcon,
Even if you label a vi re-entrant it will still follow all the flow control rules of labview. So it will still wait for the error cluster, etc. to be passed out of the vi before moving on in the program. In the context of your program there it won't change anything to make it reentrant, since your while loop is going to wait for all of its contents to execute before moving on to the next iteration.
They way I like to handle this is instead of calling the reentrant vi in the normal way, call it by vi server. Instead of plopping your subvi on the diagram like normal, open a vi reference to the vi and choose the run vi method. Then instead of waiting for your vi to finish executing before moving on, it will launch the vi in a seperate thread and move on without waiting for it to finish executing.
09-05-2007 03:14 PM
Try it like this:
Here I'm setting some control values and calling N number of "ABTSTestSequenceEngine.vi", all executing simultaneously and on their own thread.