11-10-2014 07:13 AM
Hi,
I am new to Labview and I encoutered a problem.
I did some measurments using two DAQs and used continous samples type. One device was NI 9239 and this one has a different possible sample rate than the buffer size that I set. I set the buffer size 3000 and the possible samples rate of the device were 2941 and 3125.
From what I understood, this type (continous samples type) gets filled up the buffer size and send it to the PC.
My question is the following: the sample rate of my device is 3000 or 3125?
Solved! Go to Solution.
11-10-2014 07:39 AM
Sample rate and buffer size are not really related. So that makes things a little confusing.
The way DAQs work is they sample at a certain rate and put the data into a buffer. Since you did not set the Samples Per Channel in the DAQmx Timing, the buffer should be as large as possble (this is a good thing). When you go to read the data, you are just reading everything currently in the buffer (number of samples to read was unwired, therefore read everything). As samples are read, they are removed from the buffer. You want to avoid having the buffer fill up since that will cause data to be lost.
Now the clock rate will be rounded off to the closes valid clock rate. If you really want to know what your exact clock rate is, put a property node after the DAQmx Timing VI and read the sample rate.
11-10-2014 07:55 AM - edited 11-10-2014 08:14 AM
The problem is that I've done the measurments already. I cannot run the measurments again.
Now I just want to find the sample rate.
I believed that it was 3000 and now I discovered some differences and I went back to the sample rate.
And when I analyze the data I can see that the sample rate seems to be 3000. But I see that the sample rate of the DAQ is 3125.
Is this thing possible?
11-10-2014 08:42 AM
11-10-2014 08:45 AM - edited 11-10-2014 08:47 AM
I read the specifications of the DAQ. It has 2941 and 3125 as sample rate values.
I didnt used waveform writing.
11-10-2014 08:49 AM
11-10-2014 08:51 AM
So my sample rate is 3000 or 3125?
11-10-2014 08:53 AM