09-27-2005 03:10 PM
09-28-2005 01:55 AM
What is your buffer size and sampling rate? How many samples are you reading from the buffer each loop iteration? Not only do you need to make sure your buffer is large enough to hold all your samples, you also need to make sure that your program is getting the data from the buffer quickly enough so that the buffer is not filled. Increasing your sampling frequency. will increase the number of samples you gather, which will fill your buffer quicker. Try Increasing the number of sampes you read each loop by using 'samples to read' option.
Hope this helps
09-29-2005 12:12 PM
I have tried many combinations of sampling frequency and 'number of samples'. The only combo that seems to work is using 10 Hz and 1 sample. This doesn't give an accurate depiction of the signal though. I would like to sample close to the useful frequency range which is 0.2 MHz. That is when I get the errors. I have tried increasing the number of samples but I still get those same errors. I don't know how to increase the buffer size. Do you know if the buffer can be increased using the DAQ Assistant? The DAQ assistant seems to be a very simple built in feature of LabView that may not have that option.
In response to your comment:
I thought that increasing the sampling freq. would "read the samples out of the buffer" quicker in order to make room for more incoming samples. Is that not correct?
Thanks for your input and any other tips you might have.
09-29-2005 06:28 PM
09-30-2005 09:42 AM
Thanks for the info! I'll play around with it some more and let you know how it goes.
09-30-2005 02:42 PM
Well, I tried using a 10ms delay with the daq assistant as well as the example you suggested. I am still getting the same errors no matter how I change around the parameters. I'm beginning to think that there is possibly something wrong with the transducers. I might try to get in touch with a local NI representative. Thanks for all your help! Even though my problem isn't fixed I have still learned alot so far.
Thanks Again.
10-03-2005 01:42 PM