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: 

Please help...i want to demodulate using envelope detector

Solved!
Go to solution

the first signal is the modulated ASK signal..i want to use envelppe detector to convert it to the signal below it

how i can do that...i have tried the envelope detector in the sound and vibration toolkit but with no use

 

The first signal is bits passed through a filter then multiplied by a sine carrier

The second signal is the one i want to retrieve from the first signal using envelope detector

 

Untitled.png

0 Kudos
Message 1 of 8
(4,717 Views)
Solution
Accepted by topic author Eldokch

Simplest way: absolute value and mean over one periode.

 

simple demod.png

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 8
(4,700 Views)

Thanks for your reply Henrik

but still i don't understand...where would i put my signal in this diagram

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

How much do you know about LabVIEW?

What is your background and what is your goal?

 

 

First I created my own AM signal (two sine blocks with wfrm output  (10k samplerate, 10k samples) )  and a multiplication ....

 

 

Can you find the absolute value icon?

 

the mean filter  over one carrier freq. periode is done by a convolution with a rectangular window (or array with a constant value) where the length of the window (size of the array) is ABOUT the sample point length of one carrier frequency periode.

I took the sample frequency(Fs) devided the carrier frequency and round it to the next full number ...

(homework:  How could the window be changed to match non integers?)

 

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 8
(4,678 Views)

it's only my first week..i have to learn alot in a short period of time because of my bachelor

my goal is to send the signal..above..using USRP

and recieve the signal and using envelope detection i can recieve the second signal..and then transform from analog to digital

sounds simple enough..NOT 🙂

Thanks for your help

0 Kudos
Message 5 of 8
(4,660 Views)

didn't the NI USRP package came together with bells & whistles (mean the LabVIEW  RF tools? mod&demod etc vis??)  AND a TUTORIAL??

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 6 of 8
(4,641 Views)

yes it did but not with envelope detection

0 Kudos
Message 7 of 8
(4,630 Views)

Hey Eldokch,

 

There is an envelope detection VI in the Sound and Vibration toolkit if you have access to that.  Otherwise, Henrik's code is good.  

The upper left half is generating the AM signal.  I believe you already have that part.  The bottom part cacluates the size of one period of the carrier wave for the convolution window size.  Then the bit of code on the right takes the absolute value of the waveform and averages it over the period.

 

-Jim B
Applications Engineer, National Instruments
CLD, CTD
0 Kudos
Message 8 of 8
(4,592 Views)