06-11-2012 12:14 PM
Lynn,
I added a while loop that keeps flushing the Queues in the Dequeue loop that I believe is continually flushing the data out until the loop times out and allows the next data to be written to the spreadsheet. The queue size monitor appears to be controlling in the range of between 0 and 10 samples. I would appreciate it if you could take a look and let me know if I am on the right track.
Phil
vi attached
06-11-2012 12:51 PM
Phil,
Your inner loop only runs once for each iteration of the outer loop. Most likely the flush occurs immediately after the loop starts running. Then after the Wait, the loop stops and the Dequeues start. If any of the enqueue loop has run more than once during the wait, you will have multiple elements in the queues and will only read the oldest ones. This explains why you see up to 10 on the queue size monitor.
If you move the flush queues after the Wait, then you will get the next data in the queues. However, you will need to wait until new data is put into each of the queues after the flushes, so you may need to adjust the wait times.
Lynn
06-11-2012 02:09 PM
Lynn,
Looks lie it is working.
On to some more rigorous testing.
Phil
06-12-2012 08:10 PM
Lynn,
Application working great so far. A lot of cleaning up to do but the basic system is working just fine.
An remote pint to you for all of your help.
Thanks so much,
Phil
06-13-2012 08:35 AM
Phil,
Glad you got it working.
Lynn