LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Plot the Envelope of the resulting signal of 2 random signal?

Solved!
Go to solution

Maybe i should ask how to increase the accuracy of the envelope?

0 Kudos
Message 11 of 18
(2,482 Views)

For this kind of signals I think its better to detect the peaks and valleys instead of using the Hilbert transform. Just in this case you will not get smooth waveform, but lines connecting the peaks/valleys.

 

Thanks,

Arev

0 Kudos
Message 12 of 18
(2,463 Views)

Thx for ur reply! so is it mean that i need to find those max and min first,then link them together to get a smooth envelope? do u have any example vi? thx!

0 Kudos
Message 13 of 18
(2,459 Views)

I have attached the code with Peak/Valley detection part added. Just as I noted the envelope is not smooth, as the graph just connect the peaks/valleys with lines.

 

Thanks,

Arev

Message 14 of 18
(2,455 Views)

Sorry to have so many questions.

If I use the data attatched to be my input signal, how can I get the envelope? Why can't I use the pervious vi to do it? Thx

Download All
0 Kudos
Message 15 of 18
(2,438 Views)

You will not get envelope for the current waveform with Hilbert Transform.

 

But using Peaks/Valleys you will be able to get something more similar to the envelope, as in the image below.

 

Envelopes.JPG

 

Thanks,

Arev

 

CTO | RAFA Solutions 

Message 16 of 18
(2,413 Views)

Sorry, im new in labview......can you share the code?i dun know how to conect the cluser(the pink wire)to the 1D array(the brown wire)..

0 Kudos
Message 17 of 18
(2,392 Views)
Solution
Accepted by topic author Ying88827

Please find the code attached.

 

 

Message 18 of 18
(2,388 Views)