LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Smooth transition

Solved!
Go to solution

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!

 

Captura de ecrã 2015-05-4, às 17.24.03.png

0 Kudos
Message 1 of 8
(3,247 Views)

Oversample your zeros and ones array, low pass filter to smooth it, THEN multiply by the sinusoid function.

0 Kudos
Message 2 of 8
(3,233 Views)

I try to do that but doesn't work. I send you my code. do you understand my code?

0 Kudos
Message 3 of 8
(3,219 Views)

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' .

0 Kudos
Message 4 of 8
(3,215 Views)

Captura de tela 2015-05-05 13.42.51.png

0 Kudos
Message 5 of 8
(3,196 Views)

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.

0 Kudos
Message 6 of 8
(3,190 Views)
Solution
Accepted by topic author marinajordao

@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:

 

2015-05-05_windowing.PNG

 

0.PNG

1.PNG

0 Kudos
Message 7 of 8
(3,180 Views)

Yes, This is exactly what I needed.

Thanks a lot guys!

0 Kudos
Message 8 of 8
(3,166 Views)