It sounds like the comparison of the acquired data to the thresholds is not happening as efficiently as it could. The reason is most likely in the implementation of your comparison algorithm. Something is keeping your acquisition from keeping up with the live input. The DAQ Read function is pulling scans from deep in its buffer.
4kS/sec is relatively slow for DAQ applications. Multithreading is helpful, but it cannot protect you from non-optimal code. If you can post your VIs here, I�ll take a look at it and see what might be causing the problems.
Daniel L. Press
Certified LabVIEW Developer
PrimeTest Corporation
www.primetest.com