11-11-2010 06:25 AM
I'm currently a student at University of Glasgow doing my final project. I have been trying to use labview to output a waveform to an osciliscope etc; sine sawtooth and triangle waves. On the osciliscope the voltages being produced aren't continuous. Instead of producing a smooth curve for the sine waveform it just gives out discrete values i.e not producing a curve. Is there way to possibly buffer the output voltages or create a smooth voltage change to create the sine wave so it appears like the waveform in labview?
Thanks
11-11-2010 07:33 AM
Perhaps you can post your code, and also tell us which NI DAQ you use. Creating a curve that looks smooth curve should not be that hard. But it will also depend some on your DAQ hardware
Labview is also shipped with tons of example code. Go to help in the toolbar. Select Find Examples. Then search for DAQ. The simplest example is the "Cont Gen Voltage Wfm-Int Clk.vi" But depending on what you want to do take a look at all the "Cont Gen Voltage Wfm-Int Clk......" examples
11-11-2010 10:21 AM
Of course that curve you see isn't really smooth. The waveform graph defaults to an interpolation view that make it look smooth. Right-click the plot legend and change it to see the real wave.
In any case you will still be limited by the DAQ resolution and how fast your sample clock is set to run. The only way to truly smooth it out is to add a low-pass analog filter to the DAQ outputs. However, a 16-bit DAQ clocked at many times your desired output frequency should provide an adequate signal quality for most applications.