From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

envelope in real-time

Hi,
 
I want to calculate the envelope of the amplitude of a signal in real-time. Initial testing with the Hilbert transform has been unsatisfactory. I now square the signal, detect the maxima of the squared signal and do an interpolation on these maxima to recover the envelope of the signal. However, this results in an unacceptable delay of 1/2 signal period. How can reliably calculate the envelope a signal in real-time?
 
Best,
Michiel
0 Kudos
Message 1 of 4
(2,701 Views)

Hello Michiel,

I see you tried to implement the Hilbert Transform.. DId you write this your self our did you try an example program? IBellow I put down a link to an example VI which does a Hilbert Transform. Did you see this VI before and does it also not do what you want to achief? The link:

http://zone.ni.com/devzone/cda/epd/p/id/1346

Regards,

RikP - National Instruments Applications Engineering

 

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 2 of 4
(2,675 Views)

Thank you for your reply. I indeed tried the example vi. However, i know found what i did wrong in initial testing. I took the square root of the signal before applying the Hilbert. Results are much better now. However, still one question: if I apply a signal that contains transients (say a sawtooth of 200 units in amplitude) the Hilbert results in a signal that has peaks up to 600 units. Is there any way compensate reliably for transients?

Michiel 

0 Kudos
Message 3 of 4
(2,663 Views)
Any suggestions on implementing the Hilbert transform in real-time are more than welcome. I'm kind of struggling with this issue.
0 Kudos
Message 4 of 4
(2,654 Views)