You are on page 1of 17

Mobile Communication Lab

Lab 09

To Simulate Rf Impairments in Simulink

Prepared by Engr Ali M Durrani


1
(CECOS University) ali@cecos.edu.pk
Example 9a
The model shown in the following figure simulates
RF impairments to a signal modulated by differential
quaternary phase shift keying (DQPSK)

Prepared by Engr Ali M Durrani


2
(CECOS University) ali@cecos.edu.pk
Building the Model
• To start building the model, follow these steps:

• Type commlib at the MATLAB prompt.


This opens the Communications Blockset main library.

• Type dsplib at the MATLAB prompt.


This opens the DSP Blockset main library.

• Type simulink3 at the MATLAB prompt.


This opens the Main Simulink Library.

• From the library's File menu, select New and then select Model.
Prepared by Engr Ali M Durrani
3
(CECOS University) ali@cecos.edu.pk
Random Integer Generator
- Set M-ary number to 4
- Set Initial seed to 1233
- Set Sample time to 1e-4
- Samples Per Frame to 100
- Output data type to double

Prepared by Engr Ali M Durrani


4
(CECOS University) ali@cecos.edu.pk
• DQPSK Modulator Baseband
• DQPSK DeModulator Baseband
- Set Ordering to Binary

Prepared by Engr Ali M Durrani


5
(CECOS University) ali@cecos.edu.pk
• Db Gain
- Set value of Gain , db to -73

Prepared by Engr Ali M Durrani


6
(CECOS University) ali@cecos.edu.pk
• RF Impairments

Prepared by Engr Ali M Durrani


7
(CECOS University) ali@cecos.edu.pk
Free Space Path loss

Prepared by Engr Ali M Durrani


8
(CECOS University) ali@cecos.edu.pk
Cubic Polynomial

Prepared by Engr Ali M Durrani


9
(CECOS University) ali@cecos.edu.pk
Phase Offset

Prepared by Engr Ali M Durrani


10
(CECOS University) ali@cecos.edu.pk
IQ Imbalance

Prepared by Engr Ali M Durrani


11
(CECOS University) ali@cecos.edu.pk
Phase Noise

Prepared by Engr Ali M Durrani


12
(CECOS University) ali@cecos.edu.pk
• Discrete Time Signal Trajectory Scope

Prepared by Engr Ali M Durrani


13
(CECOS University) ali@cecos.edu.pk
• Error Rate Calculation
– Set Output data to Port

Prepared by Engr Ali M Durrani


14
(CECOS University) ali@cecos.edu.pk
• Display
Use default parameter values, but drag a corner of the icon to
make it three times as tall

Prepared by Engr Ali M Durrani


15
(CECOS University) ali@cecos.edu.pk
Running Simulation
• Connect the blocks as shown
• Set Stop time to inf

Prepared by Engr Ali M Durrani


16
(CECOS University) ali@cecos.edu.pk
Lab Task 9a
Simulate RF impairments to a signal modulated
by differential quaternary phase shift keying
(DQPSK) and propagate the signal through at
least 2 types of channels.

Prepared by Engr Ali M Durrani


17
(CECOS University) ali@cecos.edu.pk

You might also like