Understanding and Avoiding Overwrite and Overflow Errors with NI-DAQmxPrimary Software: LabVIEW Development Systems>>LabVIEW Professional Development SystemPrimary Software Version: N/A Primary Software Fixed Version: N/A Secondary Software: LabVIEW Development Systems>>LabVIEW Full Development System Hardware: Multifunction DAQ (MIO)>>E Series>>PCI-MIO-16E-1
Problem: What are overwrite and overflow errors, and how can I avoid them when using NI-DAQmx? Solution: Part I - Overwrite Errors in NI-DAQmx An overwrite error is the most common error you might encounter when performing a circular buffered acquisition. The error indicates that information has been lost and occurs when LabVIEW does not read data from the PC buffer quickly enough. Samples that had been written to the circular PC buffer have been overwritten before they could be read into Application Development Environment memory.
To avoid an overwrite error, you need to increase the buffer size, read faster, or write slower. Consider taking one or several of the following actions:
You may also consider using a faster computer, if that is an option. A faster computer may enable you to transfer data between the PC buffer and the Application Development Environment memory at a higher rate. Part II - Overflow Errors in NI-DAQmx An overflow error is another commonly encountered error when performing a circular buffered acquisition. Overflow errors are more serious than overwrite errors because they indicate that information has been lost earlier in the data acquisition process. Overflow errors indicate that the First In First Out (FIFO) memory buffer onboard your data acquisition card has reached its maximum capacity for storing acquired samples and can no longer accept new samples. An overflow error is symptomatic of a bus transfer rate that falls short of the requested data input rate.
To avoid an overflow error, you need to use a Direct Memory Access (DMA) transfer mechanism, decrease the requested data input rate, or reduce the number of devices sharing the PCI bus. Consider taking one or several of the following actions:
Related Links: KnowledgeBase 4EMEEPQ7: Understanding and Avoiding Overwrite and Overflow Errors with Traditional NI-DAQ Attachments:
Report Date: 09/04/2007 Last Updated: 10/31/2008 Document ID: 4D3AI5Q7 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


