Hi HWJ,
I think the next step is to have a think about your overall architecture. How is your program currently structured? Are you using the producer/consumer loop as suggested by NeilF earlier in this thread? Is your averaging taking place in the same loop as you are are reading your data in with?
By thinking about these things to make your system as efficient as possible we may be able to prevent the problems you are seeing.
Regards,
Thomas Clark
Applications Engineer
National Instruments UK & Ireland