LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sine wave voltage output

Hi,

I'm using Labview 8.2.1 and I'd like to output a sine wave voltage to a motor. I've been mainly using the 'Cont Gen Voltage Wfm-Ext Clk.vi' within the example library. The only issue is I'd like to start from an arbitrary voltage level U to output a sine wave which is not necessarily centered about 0 but rather oscillates between U and U+deltaU, deltaU being any value. I've tried to retrieve the way the sine wave is generated through the example program but I couldn't figure out how to modify the 'NI_AALBase.lvlib:Sine Wave.vi' subvi - which seems to generate the sine wave array from a Call Library Function node I was unable to change... Is there a simple way for me to work around this?

Thibault.

0 Kudos
Message 1 of 3
(2,940 Views)
Just add an offset to the generated waveform using the Add primitive in the Numerics palette. Feed the waveform output from the Waveform Buffer Generation VI into one terminal of the Add primitive, and a constant into the other input terminal of the Add primitive. The resulting waveform will be a sine wave with a DC offset.
0 Kudos
Message 2 of 3
(2,937 Views)
Thanks!

Thibault.
0 Kudos
Message 3 of 3
(2,927 Views)