LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase buffer size

Hi all,
          Can you please brief me on how to increase the size of my I/O buffer. While making DAQ with USB6221, Error no . 200279 is flashed  saying I must Increase the Buffer size. Please advise...

with regards,
JPrakash
0 Kudos
Message 1 of 8
(23,000 Views)
Hi JPrakash,
This error can be generated in a couple of different ways. Here are a few links which tell you how it can be overcome:
One, Two
If you want others to help you, please explain more or even post your vi so people can give tips.
Regards,
0 Kudos
Message 2 of 8
(22,983 Views)

I have a similar problem. i'm using usb 6259 to acquire data:
If I increase the sample rate I get a new problem.. a buffer size must be increased also. I can't edit the buffer size because it's modified automatically in this program, an external buffer block is not allowed.
what should I do ? 

problem 1.png

0 Kudos
Message 3 of 8
(19,534 Views)

@niconsumer wrote:

I have a similar problem. i'm using usb 6259 to acquire data:
If I increase the sample rate I get a new problem.. a buffer size must be increased also. I can't edit the buffer size because it's modified automatically in this program, an external buffer block is not allowed.
what should I do ? 

problem 1.png


The error you are showing claims that you are trying to get more data than is acquired in the timeout time.  You need to increase your timeout, increase your sample rate, or decrease the number of samples to acquire.  Depending on your requirements, but the simplest solution would be setting the numer of samples to read to -1 (which reads all samples that are available).

 

As an aside, you can set your buffer size when you setup the timing.  When setting to continuous mode, the number of samples input sets the buffer size.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 8
(19,520 Views)

I tried to increase the sample rate and the timeout as well..then I got a new error, a buffer size is not large enough.
the problem is that I'm not allowed to change the buffer size, it must be edited by the program when increasing the number of samples using continues loop mode.

 

buffer size.png

0 Kudos
Message 5 of 8
(19,503 Views)

Can you share your code?

 

What rate do you want to sample at?

 

As I already said, you can set the buffer size with the DAQmx Timing VI.  Read the full help on it.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 8
(19,501 Views)

Finally, the problem is solved. 
but I don't see a full sinus wave.. last problem.png

0 Kudos
Message 7 of 8
(19,497 Views)

Where is the sine wave coming from?  What is the frequency of the sine wave?  Can you share your code?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 8
(19,491 Views)