09-20-2014 05:46 PM
Hi all!
I am presently working on a project using LabView daqmax vi as an interface with my experimental device (Piezoelectric resonator and test beaker) to perform FFT and Spectral analysis. My problem is that after finishing the final steps of design i am experiencing sampling rate error with the code. Not sure if it is with my code or with the daq setpu...
it says"Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten"
Would be gald if someone could suggest me the right way to solve it.....
Regards,
Vipul
09-21-2014 06:28 PM
Since you are using Continuous Samples, do NOT wire anything to the Samples Per Channel input on the DAQmx Timing. All you are doing there is limiting the buffer.
Here is what is happening, you are setting your buffer size to 250 samples and then trying to read 16384 samples, which is a lot more than 250. Therefore, buffer overflow.
By leaving the Samples Per Channel unwired, you are allowing the buffer size to be the default, which is usually as much memory as the card has. Hopefully it will be more than the 16384 samples you need per read.