02-13-2017 01:27 AM
Hello,
I have a general question to the command DAQmxCfgOutputBuffer.
I generate a signal that has 20000 samples. The signal gets generated on 2 channels so I have total 40000 samples in my array. Now my question is how do I configurate my output buffer? Do I give him the value 20000 or 40000?
Best regards
Solved! Go to Solution.
02-14-2017 04:20 AM
Hi Fasching,
the output buffer stores the samples to generate in the onboard buffer. In general you configure the samples per channel as documented under the following link:
Output >> Buffer Size - NI-DAQmx C Reference Help - National Instruments
http://zone.ni.com/reference/en-XX/help/370471AF-01/mxcprop/attr186d/
Depending on your hardware and generation rate you might write samples in blocks to the buffer.
If the buffer on the hardware is large enough to store all the samples, you can also use the buffer allocation from the driver. Details about that procedure are described under the following link:
How Is Buffer Size Determined? - NI-DAQ™mx Help - National Instruments
http://zone.ni.com/reference/en-XX/help/370466AD-01/mxcncpts/buffersize/