Expt 03

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Brac University

Department of Electrical and Electronic engineering


EEE342/ECE342: Introduction to Communication Engineering Laboratory

Experiment No: 03
Experiment Name: Sampling Theorem using MATLAB Simulink

Objective:

The objective of this experiment is to study the Sampling Theorem.

Introduction:

Given a continuous sinusoidal signal s(t ) and a impulse train p(t ) , we can sample continuous signal
s(t ) by multiplying with p(t ) . Suppose the period of impulses in p(t ) is Ts and its corresponding
1
sampling frequency will be  Fs . In addition, the continuous sinusoidal signal has frequency F .
Ts
In this section, we will discuss three cases,

 Fs  2F (Sampling rate is less than twice sine wave frequency)


 Fs  2F (Sampling rate is equal to twice sine wave frequency)
 Fs  2F (Sampling rate is larger than twice sine wave frequency)

Fig. 1: Sampling Theorem

From sampling theorem, sampling rate Fs should be equal or larger than twice frequency of
sinusoidal signal F . i.e., Fs  2F . For our Simulink configuration, we set the sinusoidal signal
frequency as 500Hz and we give three sampling frequencies, 500Hz, 1kHz and 10kHz. For Nyquist
theorem, if the sampling rate is smaller, it will result in aliasing. If the sampling rate is larger than the
Nyquist rate, it will result in imaging. Hence, in this section, we want to give a true simulation of
sampling a continuous sinusoidal signal and give discussion in “Time Domain”.

Page | 1
Lab Work:

 Draw all the models one-by-one in the MATLAB Simulink window.


 Set the simulation time from the model window as below:
SimulationSimulation parameters: Start time = 0.0 & Stop time = 0.01.
 Simulate the model and observe all the wave shapes at different points of the model.

Instructions:

 You can take the blocks from the Simulink Library Browser.
 The blocks that you will use in this experiment can be taken from the following mentioned
library:
 Sine Wave: Simulink SourcesSine wave
 Pulse Generator: Simulink SourcesPulse Generator
 Product: SimulinkMath operationsProduct
 Scope: SimulinkSinksScope

Parameters to be used for different blocks:

 Sine wave:
 Sine type: Time based
Amplitude: 5.0
Frequency: 2*pi*500 rad/sec
Sample time: 1/1000000

 Pulse Generator:
 Pulse type: Time based
Amplitude: 1.0
Period (secs): 0.0001
Pulse width (% of period): 0.1

 Product: Number of inputs: 2 & Multiplication: Element wise

 Scope: Data History: Uncheck the ‘Limit data points to last’.

Simulation Models

Page | 2
Fig: Sine wave Fig: Impulse Train

Fig: Sampled Signal

Report:

1. At first regenerate the model shown in the experiment. Then build the model for
reconstruction on top of that. Show all the waveshapes in the report of the full model.
2. Explore natural sampling and show the waveshapes in the report.

Page | 3

You might also like