NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
0711
Posts: 37
0 Kudos

Why FSK demodulator output different bitstreams in case of the same inputs of different lengths?

Hi everyone,

 

   Recently I was trying to do FSK demodulation with Labview and my USRP2.

 

   I did the following two tests, but found a strange phenomenon:

  

   In the first test, I use the demodulator to demodulate a waveform of 18399 samples, where the signal occupies about the first 12000 samples, and the FSK demodulator outputs a bitsream of 1116 bits.

   The input waveform is shown in the following figure.

   all.PNG

 

   In the second test, I use the demodulator to just demodulate the first 12000 samples of the waveform,  and I found that the demodulator outputs a bitstream of 705 bits.

  The input waveform is shown in the following figure:

   first part.PNG

 

   According to my understanding, as the input of the 2nd test  is the same as the first part of the first 1st test, the output bitstream of the 2st test must be equal to the output of the 1st test. However, they looks very different. In the first test, even the sync  sequence of bits cannot be found. 

 

    Can any one  help me explain why?  Thanks in advance!  

 

   In the attachment, I post the program and my test data.

  

 

Member
Anthony_F
Posts: 176
0 Kudos

Re: Why FSK demodulator output different bitstreams in case of the same inputs of different lengths?

Hello 0711,

 

Are you using the Demodulate FSK function provided with modulation toolkit? I did not see the demodulation VI in the zip file and the main VI is not executable.

 

If I understand correctly the second signal is just a subset (first 12,000 samples) of the first signal.  Do the first 705 bits match in both signals? 

 

For 16 bits/sample and 18399 samples you should get back about 1149 bits. For 16 bits/sample and 12000 samples you should get back about 750 bits. Both of these seem to loosly correspond with the number of samples you are giving the demodulate VI and the output bitstream. 

 

Have you zoomed into the acquired waveform to see if it is not distorted? Are you able to spot the frequency shifts by inspection?

Anthony F.
Product Marketing Engineer
National Instruments
Member
0711
Posts: 37
0 Kudos

Re: Why FSK demodulator output different bitstreams in case of the same inputs of different lengths?

Hello Anthony F,

 

   Yes, I use the modulation toolkit.But I encapulate it into a subvi. Sorry for that I forget to attach it.

 

   

Member
Anthony_F
Posts: 176
0 Kudos

Re: Why FSK demodulator output different bitstreams in case of the same inputs of different lengths?

Another place to check for inconsistencies is the symbol mappings array in the FSK System Parameters cluster as well as continuous/discontinuous phase setting.

Anthony F.
Product Marketing Engineer
National Instruments
Member
0711
Posts: 37
0 Kudos

Re: Why FSK demodulator output different bitstreams in case of the same inputs of different lengths?

Hello Anthony,

   

   Yes, you are correct. The second input  signal is just a subset of the first signal, and it is the same as the first 12000 samples of the second signal, But the demodulation of the second signal is totally different than the first 705 bits of the second signal.

 

    I get the second signal by extracting and dumping the first 12000 samples of the first signal. So both the two signals have the same start time, the same sample rate, but diffferent sample length.

 

  

Member
0711
Posts: 37
0 Kudos

Re: Why FSK demodulator output different bitstreams in case of the same inputs of different lengths?

Dear Annthony,

 

   The symbol mappings array in the FSK System Parameters cluster and the  continuous/discontinuous phase setting are same in both tests.

Member
0711
Posts: 37
0 Kudos

Re: Why FSK demodulator output different bitstreams in case of the same inputs of different lengths?

Sorry Everyone,

 

   I checked the program last night. Now I package all the subvis in the attachment. Thanks for your help

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page