01-07-2008 05:09 AM
01-07-2008 08:43 AM
01-23-2013 06:00 AM
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 ?
01-23-2013 07:14 AM
@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.
01-23-2013 08:57 AM
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.
01-23-2013 09:08 AM
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.
01-23-2013 09:58 AM
Finally, the problem is solved.
but I don't see a full sinus wave..
01-23-2013 10:37 AM - edited 01-23-2013 10:38 AM
Where is the sine wave coming from? What is the frequency of the sine wave? Can you share your code?