Data Translation
Data Translation Knowledge Base
Home / All Categories / Imaging Software / Development
KB HomeKnowledge Base Home | SearchSearch | GlossaryGlossary

I'm trying to use the Continuous-Acquire Passthru mode with the DT3152-LS board. How do you buffers with this function?

You must define the number of user buffers you want to use. The users buffers are used in rotation. Associated with these buffers is the Flag Done List.  You need to set the done flags, associated with each buffer, to 0 before you start passthru.

Once the buffer is full, the buffer's done flag is set to 1 (true), and you can process the data.

After you read the data, you must reset the buffer-done flag to 0 before you can reuse the buffer. If you do not reset the flag, once all the buffers are full, the operation will stop providing PASS_STOP_ON_OVERFLOW is specified in the passthru function. Otherwise, the buffers are overwritten, and their corresponding flag count is increased by 1.

This way, you can tell how many times a buffer has been overwritten since the last time it was written to.  Item Created: 8/30/01

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