05-05-2015 04:27 AM
Hello everyone!
basically I want to do what is in the picture attached.
I have an array of ones and zeros, which are later converted into waveforms. So I want these waveforms representing zero and one, when transiting the waveform representing 0 for waveform that is 1, and vice versa, has smooth transition. I've tried using filter, but it only applies to all signs, and not every 0 and 1. Someone help me?
Thanks!
Solved! Go to Solution.
05-05-2015 04:54 AM
Oversample your zeros and ones array, low pass filter to smooth it, THEN multiply by the sinusoid function.
05-05-2015 05:40 AM
I try to do that but doesn't work. I send you my code. do you understand my code?
05-05-2015 05:57 AM
I don't have LabVIEW on this machine, please post an image or VI snippet of your block diagram. Also, it would help if you tell me exactly in what way it 'doesn't work' .
05-05-2015 07:44 AM
05-05-2015 08:10 AM
Too small for me to read really, but it looks like you're 'filtering' individual samples? Pass the whole input array through the filter, but upsample it first.
05-05-2015 08:28 AM
@marinajordao wrote:
I've tried using filter, but it only applies to all signs, and not every 0 and 1.
So, you have to tell your code to apply the window to every 0 and 1, here's a quick draft:
05-05-2015 09:05 AM
Yes, This is exactly what I needed.
Thanks a lot guys!