取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 8 条)
23,249 次查看

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 项奖励
2 条消息(共 8 条)
23,232 次查看

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 项奖励
3 条消息(共 8 条)
19,783 次查看

@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
4 条消息(共 8 条)
19,769 次查看

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 项奖励
5 条消息(共 8 条)
19,752 次查看

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 项奖励
6 条消息(共 8 条)
19,750 次查看

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

0 项奖励
7 条消息(共 8 条)
19,746 次查看

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 项奖励
8 条消息(共 8 条)
19,740 次查看