02-07-2008 04:08 PM
02-08-2008 01:01 PM
Hi,
Buffer is the space reserve in computers memory (RAM) for the acquisition of the samples, like the help says: “A buffer is a temporary storage in computer memory for acquired or to-be-generated samples. Typically this storage is allocated from your computer's memory and is also called the task buffer”.
In the “DAQmx Configure Input Buffer” function the buffer size is measure in samples per. buffer size (in samples per channel) is the number of samples the buffer can hold for each channel in the task. Zero indicates to allocate no buffer. Use a buffer size of 0 to perform a hardware-timed operation without using a buffer. So in your case 4M is 4 millions of samples per channel.
Two points I would like to emphasis, DAQmx drivers 8.5 had a problem with setting up the buffer size bigger than 64 MB, (buffer size times per channel times 2 bytes per sample); it has been solved in newer version, make sure you do have a version newer than 8.5.
Second why do you need to increase the buffer size one, are doing some kind of analysis that takes a considerable amount of time and you want to have enough space to save the variables before been able to read another chunk of samples? If this is the case a producer consumer (parallel) design in LabVIEW will help you with this problem.
I hope it helps