cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

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
Mensaje 1 de 8
23.863 Vistas

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
Mensaje 2 de 8
23.846 Vistas

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
Mensaje 3 de 8
20.397 Vistas

@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
Mensaje 4 de 8
20.383 Vistas

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
Mensaje 5 de 8
20.366 Vistas

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
Mensaje 6 de 8
20.364 Vistas

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

0 kudos
Mensaje 7 de 8
20.360 Vistas

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
Mensaje 8 de 8
20.354 Vistas