Data Translation
Data Translation Knowledge Base
Home / All Categories / Data Acquisition Hardware / USB
KB HomeKnowledge Base Home | SearchSearch | GlossaryGlossary

After sampling my A/D input channels in continuous mode, the system responds with the error "WM_OVERRUN_ERROR".

This message is sent when the hardware of an input subsystem runs out of buffer space. An overrun error indicates that the input data was not transferred before the next sample was received. This error occurs when data transfer from the hardware to the driver cannot keep up with the input clock rate. To avoid this error, reduce the sampling rate or increase the size of the buffers.

(Note: If this error message occurs, continuous operation is halted. For input subsystems, the error usually causes a partially-filled buffer to be placed on the done queue. Call olDmGetValidSamples to determine the number of valid samples in the buffer). In other words, The A/D subsystem has an overrun error. The A/D subsystem's clock is running faster than the acquisition computer can keep up with. Try one or more of the following solutions:  Slow down the A/D clock. If using an internal clock source, use olDaSetClockFrequency to decrease the input pace. Otherwise, use olDaSetExternalClockDivider to decrease the input pace.  Use a different wrap mode. Use olDaSetWrapMode to specify a new wrap mode.  Increase the buffer sizes. Use the same function you used to allocate the buffers initially (olDmAllocBuffer, olDmCallocBuffer, or olDmMallocBuffer) to increase the number of samples each buffer may hold.  Use more buffers. Use olDmAllocBuffer, olDmCallocBuffer, or olDmMallocBuffer, as appropriate, to create more buffers.  *Created: 11/10/05.

Copyright © 2013 Data Translation, Inc. All rights reserved.