01-12-2016 08:31 AM
Maybe i should ask how to increase the accuracy of the envelope?
01-12-2016 12:40 PM
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
01-12-2016 12:53 PM
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!
01-12-2016 01:01 PM
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
01-12-2016 07:45 PM
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
01-13-2016 12:42 AM
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.
Thanks,
Arev
CTO | RAFA Solutions
01-13-2016 04:07 AM
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)..
01-13-2016 04:15 AM
Please find the code attached.