11-07-2007 05:54 PM
11-09-2007 09:57 AM
Hello Todd,
I hope all is well with you. From my understanding you are using the DAQ assistant to create an Analog output voltage task to output a
constant voltage. You then receive error 200609.
Error -200609 is caused when a buffer is created but the selected size of the buffer is too small. This can solved by increasing the
buffer size using DAQmx Configure Output Buffer in LabVIEW.
Using NI-DAQmx in LabVIEW, memory allocation is typically handled automatically for you if you use the DAQmx Timing.vi:
If the acquisition is finite (sample mode on the DAQmx Timing.vi is set to Finite Samples), NI-DAQmx allocates a buffer equal
in size to the value of samples per channel. If the acquisition is continuous (sample mode on the DAQmx Timing.vi is set to Continuous
Samples), NI-DAQmx will allocate a buffer according to the following table:
Sample Rate Buffer Size
0-100 S/s 1 kS
100- 10,000 S/s 10 kS
10,000- 1,000,000 S/s 100 kS
> 1,000,000 S/s 1 MS
You can manually override NI-DAQmx's choice of buffer size by calling the DAQmx Configure Input Buffer.vi (or DAQmx Configure Output Buffer.vi for output operations) THis VI can be found by right clicking on the block diagram and selecting Measurement I/O>>NI-DAQmx>>Task Config/Ctrl>> Buffer Node. Right click on the task input and select create>>constant. Select the Voltage output task that you generated in MAX from the drop down menu. Right click on the Output: Buffer size and select create>>constant. Select 2 for the constant.
For more information, refer to the LabVIEW Help for the DAQmx Configure Input Buffer.vi and to the NI-DAQmx Help. You can access the help for the DAQmx Configure Input Buffer.vi by right-clicking on top of the VI and selecting the Help option. You can access the DAQmx Help by selecting Start>>Programs>>National Instruments>>NI-DAQ>>NI-DAQmx Help.
Additional Resources:
NI DAQmx Express VI Tutorial
Getting Started with NI-DAQmx
If, for any reason, this post did not solve the problem please answer the following questions and attach your VI.
Which DAQ card are you programming?
What is the constant voltage you are outputting from the hardware?
08-15-2011 10:38 AM
I have the same problem. I have tried what you have said to solve the problem but i guess i did something wrong. I attached my .vi.
I have NI PCI-6229 as data acquisition card and i want to control a linear motor through a feedback coming from IK220 counter card for Heidenhain linear encoder.
Thanks in advance.
08-16-2011 02:24 PM
The error code you received likely says "Generation cannot be started, because the selected buffer size is too small. Increase the buffer size.Selected Buffer Size: 1
Minimum Required Buffer Size: 2". In your code, you are wiring a single element from the PID VI to the DAQ Assistant Express VI. The error states that you need at least two values in order to function with the continuous update. Some boards support hardware single point mode, which allows you to push one data element at a time rather than send the values to the device in chunks, but all you really need is either build an array of the desired values.
04-03-2017 08:37 AM
This occur when you generate analog voltage from DAQ assistant what you have to do is double click on DAQ assistant in configuration menu you see Timing Settings go to drop down menu and select 1 Sample (On Demand).