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 ?
@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 ?
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.
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.
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.
Where is the sine wave coming from? What is the frequency of the sine wave? Can you share your code?