06-29-2018 07:27 AM
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!
06-29-2018 07:47 AM
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
06-29-2018 08:20 AM
I clearly have a problem with my eyesight 😛
thanks Bob.
06-30-2018 05:04 AM
You have to wire 0V to output before you clear and close the task