08-06-2007 07:33 PM
08-06-2007 07:59 PM - edited 08-06-2007 07:59 PM
I would use a queue. As you gather data, enqueue the data. In the slower loop, process the data queued so far by reading from the queue until it is empty. You can use the Queue Status vi and then flush the queue to get ready for new data.
Here is some sample code to get you started.
Message Edited by tbob on 08-06-2007 06:00 PM
Message Edited by tbob on 08-06-2007 06:01 PM
08-07-2007 09:47 AM
08-07-2007 10:49 AM
08-07-2007 11:04 AM
What will happen if I'm reading the last value in the queue at the same time the write loop is adding another value to the queue?
08-07-2007 01:55 PM
08-07-2007 02:22 PM
08-07-2007 05:20 PM
08-07-2007 05:28 PM