LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration of my output buffer

Solved!
Go to solution

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

0 Kudos
Message 1 of 2
(2,720 Views)
Solution
Accepted by topic author Fasching_K

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/

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 2 of 2
(2,681 Views)