01-15-2015 03:53 PM
I think Henrik, as usual, is pointing us in the right direction.
I put a waveform indicator on the output lines from the Read Waveform from File.vi. (I then found that you cannot change the display format of the dt indicator in the wavefrom indicator. See separate post on the topic.) Expanding the display of dt shows that the actual values as reported in the waveforms recorded in the files are:
Filename Recorded dt Calculated fs
2000.dat 0.005000000000 200.000000000000000
10000.dat 0.001000000000 1000.00000000000000
10001.dat 0.0009998750000 1000.12501562695388
20000.dat 0.0005000000000 2000.00000000000136
20001.dat 0.0004998750000 2000.50012503125822
First, note that the actual sampling frequencies are 1/10 the values you said you were using. Second, note that only the 200 and 1000 frequencies are integers. Check the manuals for your DAQ devices to see what sampling frequencies can actually be generated. At these actual sampling frequencies the Nyquist limit will be well within the typical audio bandwidths. I suspect that you are seeing aliasing of harmonics or noise generated within the circuit you are testing.
Lynn
01-15-2015 04:36 PM
Just tested with a scope. Tested with a sampling rate of 20006 Hz on the DAQ and it produces the same characteristic sawtooth plot. The plot on the scope looks as expected however (ie. looks like the 20 000 Hz plot). Just thinking about the other comments 🙂
01-15-2015 04:46 PM
Oh shoot, just realized that the saved data is downsampled by a factor of ten (every tenth point is kept, the rest thrown out, no fitting). Sorry about that!!!!! The data is saved to a database and it was getting too large to handle. The downsampling happens at the very end so that the plot indicattors receive the full data rate.
01-29-2015 02:11 PM
Resolution.
01-29-2015 05:46 PM
That makes sense. The effects you were seeing acted like aliasing, but it was not clear how it was happening. Thanks for letting us know what you found.
Lynn