Lab Notes 2
Lab Notes 2
&eriodic Sampling
The typical method of obtaining a discrete-time representation of a continuous-time signal is through periodic sampling, wherein a se uence of samples, x" n! , is obtained from a continuous-time signal x $t # according to% x" n! = x $t # t =nT T is the sampling period, and its reciprocal, f s = ' & T , is the sampling fre uency, in samples per second $()#. *e also e+press the sampling fre uency as s = , & T when we want to use fre uencies in radians per second.
X dig $# =
' T
n =
cont
$ ns #
-ote that, for the bandlimited signal, within each fre uency period, the fre uency spectrum of the sampled signal has the same distribution as the fre uency spectrum of the original signal. The process of sampling has resulted in the fre uency spectrum of the original signal being repeated around every integer multiple of s . This leads to the phenomenon of aliasing, whereby, after sampling, high fre uencies can alias down to lower fre uencies.
X $# = 0 for N Then x $t # is uni uely determined by its samples x" n! , provided we sample faster than% s = , & T ,N
The fre uency N is commonly referred to as the Nyquist frequency , and the fre uency , N that must be e+ceeded by the sampling fre uency is called the Nyquist rate.
Assignments: '. 2ownload the Simulink model recon.mdl from the website. It is shown below in figure '. -ote that it cascades a discrete-time and a continuous-time system to effectively sample and reconstruct the input. 2ouble click the Signal 4enerator to see what the fre uency of the input $continuous-time# sine-wave is, and double click the 2iscrete-Time Transfer .unction to see what its sample time is $from which you can easily compute the sample fre uency#. 3un it to see the $time domain# Scope plot$s# and the $fre uency domain# 5ower Spectral 2ensity graphs, compare them, and e+plain what you see. 2ouble click the 2iscrete-Time Transfer .unction and change the sample time to '&600, '&'00, '&60, '&70, '&,0, '&'6, '&8.6, '&6. 3un the program at every case and e+plain what you see 9 how good a :ob of appro+imating the original signal does the reconstructed signal do; <+plain the connection between the time and fre uency domain content of the signals, and the effects of sampling. -ote what happens above and below the -y uist rate $think about the periodicity of the signal and where the samples occur#. Bon s% try e+perimenting with non-trivial continuous-time and discrete-time transfer functions $i.e., not simply unity# and e+plain what you see. ,. 2ownload the Simulink model movavg.mdl from the website. It is shown in figure ,. The input consists of a noisy sine wave $made by superposing two signals#. 3un the filter and e+plain what you see. -ote that you can double click on all the components to check their properties $sample rate, fre uency, amplitude, etc.#. -ow change the input section so that the input is $effectively# an impulse $e.g., you can use the 5ulse 4enerator Source# and hence simulate the impulse response of this system. 2oes it correspond to what you would calculate from the theory we have done in class; Is it an .I3 filter; Bon s: try e+perimenting with different inputs $e.g., sine waves of various fre uencies#, and replace the output Scope with a 5ower Spectral 2ensity block. Try to empirically determine the fre uency response of this filter $what type of filter is it;#.
1 z Unit Delay3