LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controllable DC voltage

Hi,

 

I'd like to create a DC voltage with a ripple on it. I used on of the examples shipped with LV as a basis for the sine wave generation, but that only generates a sine wave. I'm not sure how to add the DC component so I have just added it to all the elements of the sine wave array in the waveform. Is there a more elegant way to do it?

 

What I have also noticed is that after clearing the task the analog board keeps the last value on its output instead of setting the output to 0V. Is there any explanation for this? is there any way to make the task to reset itself to 0V before closing or should I just write 0V to the output after I have cleared and closed the task?

 

Thanks!

 

Sine_with_dc.png

0 Kudos
Message 1 of 4
(2,708 Views)

Simply wire a value into the "Offset" input of the Sine Waveform Generator in your code.  Hint: it helps to read the Help for LabVIEW Functions that you are using -- if nothing else, it lists all of their Inputs and Outputs.

 

Bob Schor

0 Kudos
Message 2 of 4
(2,701 Views)

I clearly have a problem with my eyesight 😛

 

thanks Bob.

0 Kudos
Message 3 of 4
(2,692 Views)

You have to wire 0V to output before you clear and close the task


CLD Using LabVIEW since 2013
0 Kudos
Message 4 of 4
(2,654 Views)