04-03-2007 09:37 AM
04-03-2007 09:47 AM - edited 04-03-2007 09:47 AM
Message Edited by AndrewAlford on 04-03-2007 08:49 AM
04-03-2007 09:51 AM
04-03-2007 09:54 AM
04-03-2007 10:01 AM
04-03-2007 10:04 AM
04-03-2007 10:43 AM
04-03-2007 10:46 AM
04-03-2007 10:54 AM
You can enqueue the element wherever it makes sense in your program. If you want to nest for loops and queue the inner most iterator, that will work fine.
As far as using the value in another sub VI, you can just create the queue outside of both of them. Send the queue reference in to both the sub VI generating the numbers and adding them to the queue and the other sub VI which dequeues each value. You can't simply wire the value that is dequeued out of the while loop and out of the sub VI to read it anywhere else while it's being updated.
I think it would be beneficial for you to read up a little more on dataflow programming. You have to realize that structures don't output anything until the code inside them is finished.
04-03-2007 12:40 PM