FSK using baseband modulation

19 views (last 30 days)
al-comm
al-comm on 17 Jun 2011
Answered: Derek Eccles on 9 Apr 2019
Hello,
I want to create a FSK modulator using the "*M-FSK Modulator Baseband*" block, the input is Bernoulli Binary Generator (0, 1) , but i cant get the good output ( 2 different frequencies ) on the scope in real time !!??
P.S : the output shown is bad because the frequency is the same whatever the input is 0 or 1. !!!
Thanks a lot,
Bye
  2 Comments
Rick Rosson
Rick Rosson on 17 Jun 2011
Can you please post a screen shot showing the mask parameters (dialog box settings) of the 2-FSK modulator block? Thanks!
al-comm
al-comm on 19 Jun 2011
Hello Rick,
Thanks for your comment and sorry for late, I’ve not received any notification for your comment,
Anyway, here are the mask parameters:
http://imageshack.us/photo/my-images/225/setupx.jpg/
P.S: Even if I choose Binary or Gray the result is the same, and the sampling by symbol parameter does not give a good signal too …
This part is bugging my project,
Waiting for answer please,
Thanks again,

Sign in to comment.

Accepted Answer

Rick Rosson
Rick Rosson on 20 Jun 2011
The output of the Simulink model is correct. The reason that it is not the same as the "Good Output signal" is that the Simulink signal is the complex baseband equivalent of the desired FSK signal, whereas the "Good Output signal" is the real-valued passband signal. Although these two signals are not the same, they are related.
In fact, you can generate the real-valued passband signal in the Simulink model by adding a handful of blocks that represent the passband modulation. To do so, multiply the output of the baseband modulator by a complex exponential at the desired passband frequency, and then view the real- and imaginary- parts on the scope.
HTH.
  3 Comments
Rick Rosson
Rick Rosson on 20 Jun 2011
What are your specific questions?
Please let me know.
Thanks!
al-comm
al-comm on 20 Jun 2011
Hello,
I see the difference between Baseband and Passeband, I’ve multiplied the baseband output modulator by complex exponential, but I still can’t see the good output...
My schematic:
http://imageshack.us/photo/my-images/18/expt.jpg/
All parameters are kept the same, and I’ve tested the complex exponential with different frequencies from 10 Hz to 10 KHz…
Thanks a lot.

Sign in to comment.

More Answers (2)

Rick Rosson
Rick Rosson on 21 Jun 2011
You are getting closer to the right answer, but still not quite there yet. In your schematic, you are feeding the output of a real-valued sine wave to the input of the complex exponential function. So the output of the complex exponential block is:
exp(j*sin(2*pi*Fc*t))
where Fc represents the carrier frequency (in hertz). This modulation signal is not quite correct.
The correct output of the complex exponential should be:
exp(j*2*pi*Fc*t)
That means the input to the complex exponential function should be the simulation clock t feeding a gain block with a value of 2*pi*Fc.
Please give that a try.
Alternatively, I believe that you can generate a complex exponential output from the Sine Wave block. Please check the dialog box.
HTH.
Rick
  1 Comment
al-comm
al-comm on 21 Jun 2011
Hello,
I got it Rick, thank you, and as you said I generated the complex signal from the sine wave …
Thanks a lot for your help.

Sign in to comment.


Derek Eccles
Derek Eccles on 9 Apr 2019
I am using a Math function block with the exp. function selected and the output data type as complex, to generate the carrier.
I then feed this to a complex to re-im block thinking this would get me the cosine and sine carriers which are required for 2_FSK.
The Im signal is a constant flat line, while the re signal is an exponential. Nothing like cosine or sine which I was hoping for ?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!