06-02-2010 09:53 AM
Hello experts,
I am using Labview 8.0 and trying to output a smooth sine wave to a USB 6212 DAQ. I am using the simulate signal vi wired to the DAQ assistant. The generated signal looks great on a wave chart but when I view the signal on AO-0 with an oscilloscope it is not smooth, it appears jagged and blocky. I have attached screenshots of my setup. Any help would be appreciated.
Thank you
06-02-2010 10:16 AM
Well it looks like you have two things contributing:
1) the d-a convertion in the 6212 is 16 bits and you have a 20 volt range so each bit reprents a discrete 0.305mV step (+/- conversion errors). so you really aren't producing a pure sine wave just steps.
2) the larger portion of what you are observing on the o'scope is due to the o'scope. Essentially an O'scope is meant to be read by an operator so vertical accuracy is as good as an operator need. The standard is +/- 1/2 minor division. With 50 minor divisions on any range an accuracy of 1% is as good as a scope really needs to be- so the typical digital scope uses an 8bit ADC. Assume you have a 20V vertical scale this means the smallest change you can see is 78mV. Try looking at only a portion of the signal (use a finer vertical scale) and the resolution of what remains on the screen will improve.
06-02-2010 10:50 AM
Jeff thank you for your help.
I am not sure that the oscilloscope is the problem. When I replace the simulate signal vi with signal processing>>waveform generation>>sine waveform then the signal on the oscilloscope looks smooth but it appears to be producing the waveform one cycle at a time. The signal is smooth for one cycle then levels at zero briefly then outputs the next cycle smoothly. When I observe the signal on a wavechart it produces one cycle then pauses briefly then produces the next cycle. Is there a way I can make this produce a continuous signal? What is the best method of producing a waveform on the analog out? (simulate signal, sine waveform, etc)
06-02-2010 11:02 AM
in a nutshell- don't use the express vis!
I usually prototype my tasks in MAX interactivly then
from LabVIEW drop a task constant on the BD, select my task and Right-click>Create>Code>Configuration And Example. It seems even easier to me than using the express vis and I can even do it with simulated hardware befor the system is assembled.
06-02-2010 11:29 AM
06-02-2010 11:30 AM
