11-18-2017 11:17 AM
Hi there!
I am trying to make a VI where I transform a plain sine wave into a rectified one. Can anyone tell me why this is not working?
Solved! Go to Solution.
11-18-2017 11:24 AM
You only have a single value coming out of your "less than zero?" node. That means it is making a single decision, so I think it looks at the average of the Y array and determines if it's less than zero. You really want to go on an element by element basis. So use "get waveform components" to get the Y array, put it into a For Loop, and try your logic again. Then "build waveform" using your previous waveform and only bundling in the new Y array.
11-18-2017 11:37 AM
I think this will also do what you want:
11-18-2017 12:12 PM
11-18-2017 12:14 PM
Yes, it was so obvious. This did the trick, thank you!
11-18-2017 12:33 PM
@icamaster wrote:
Yes, it was so obvious. This did the trick, thank you!
Hopefully you are not really going to do whatever you marked as solution above :o.
11-18-2017 01:08 PM
Your solution was fine for Full-Wave but I also want a Half-Wave, which takes only positive values.
11-18-2017 03:50 PM
That's the first time you mention half-wave. How are we supposed to guess that?
But even for half-wave you don't need a FOR loop.