03-08-2012 07:27 AM
Hi i'm currently using the NI USB 6259 BNC to read a voltage signal from a vibration sensors to a frecuency of 8Khz, i'm testing the program with a signal generator and a sine wave of 7Khz but whem I do a zoom of the signal in the grap. The wave isn't show perfectly i'm using the daq assistent in continuos mode with a rate of 32k and samples to read of 16k, someone knows how to fix that problem.
This is my code for 1 channel only but i will use it for 6 channels only adding more channels in the assistant.
It is urgent.
03-08-2012 07:38 AM
you say not displaying perfectly, what is the actul fault?
03-08-2012 04:21 PM
the fault is that when I zoom the graph the wave doesn´t look like the original wave before the acquisition. these are the photos of the fault.
03-08-2012 10:06 PM
Something is wrong with your second jpeg. And why not take an actual screenshot of your computer rather than taking a 2MB blurry picture of the screen?
As for your issue, you aren't sampling fast enough! You have an 8kHz sine wave, but are only sampling at 32kHz. That means you are only going to have 4 samples for each period of your waveform. Of course it is going to look rough when you look closely at it. You will need to sample at least 10 - 20 times the frequency of your signal if you want to see a waveform that looks closer to a real sinewave.