09-04-2009 11:45 AM
Solved! Go to Solution.
09-04-2009 12:18 PM
Hi Liberated,
You can explicitly configure the buffer using the DAQmx Configure Output Buffer.vi. Alternatively, you could let DAQmx automatically configure your buffer based on the amount of data you write before you start the task. You can't mix and match DAQmx and Traditional DAQ functions on the same device, so using the traditional AO Buffer Config.vi is not an option if you want to use DAQmx on your board.
Here's a screenshot from the DAQmx Help that explains how buffer size is determined in DAQmx:
I hope this helps!
Best Regards,
John
09-04-2009 02:49 PM
Thanks for the response John
So, all I have to do is wire my array to the data input of DAQmxWrite(Analog 2D DBL NChan NSamp).vi, and the buffer sizing is automatically taken care of. Is this correct? Is there any benefit to manually sizing the buffer with the DAQmx Configure Output Buffer.vi in this case?
09-04-2009 03:06 PM
Hi Liberated,
You are correct that writing an array of data to DAQmx Write will auto-size the buffer to exactly accomodate the array. There are a few cases that you might want to configure the output buffer to be larger than this, which is when you would want to use the Configure Output Buffer function. For example, if you plan on streaming data to the DAQ device continuously after the task starts (Non-Regeneration) you might want to use the Configure Output Buffer to have more control over the buffer size.
The Configure Output Buffer is more of an advanced function and under most circumstances should not be required. If you have a pre-determined set of data that you will be writing to the output buffer before the task is started then I see no reason to have to manually configure the output buffer.
-John
09-04-2009 03:14 PM
John
Thank you very much for the help. The output is now what I had been expecting it to be.
Paul