Ben wrote in news:50650000000500000044140100-1042324653000
@exchange.ni.com:
> This sounds like a race condition!
>
> This usually results from having multiple writers to an un-protected
> data structure. What happens is old info gets re-written over new
> data.
The best (and easiest) way I have found to avoid race conditions, without
unnecessarily sequencing different .VIs by using a non-reentrant SubVI, is
to use Queues for the data handling. Use a Queue to modify the Global
variable, where the Queue has a a data type of a single record. Then
simply push the data on to the Queue as it becomes available, and as there
is only one VI actually reading/writing the Global, no race conditions
should exist.
Andrew