Chapter 2 Function Reference — DAQ_DB_C onfig
©
National Instruments Corporation 2-121 NI-DAQ FRM for PC Compatibles
DAQ_DB_Config
Format
status = DAQ_DB_Config (deviceNumber, DBmode)
Purpose
Enables or disables double-buffered DAQ operations.
Parameters
Input
Parameter Discussion
DBmode indicates whether to enable or disable the double-buffered mode of acquisition.
0: Disable double buffering (default).
1: Enable double buffering.
Using This Function
Double-buffered data acquisition cyclically fills a buffer with acquired data. The buffer is
divided into two equal halves so that NI-DAQ can save data from one half while filling the
other half. This mechanism makes it necessary to alternately save both halves of the buffer
so that NI-DAQ does not overwrite data in the buffer before saving the data. Use the
DAQ_DB_Transfer functions to save the data as NI-DAQ acquires it. For additional
information, see Chapter 5, NI-DAQ Double Buffering, of the NI-DAQ User Manual for PC
Compatibles, for more information.
Name Type Description
deviceNumber i16 assigned by configuration utility
DBmode i16 enable or disable double-buffered mode