You are on page 1of 8

Simulation of data communication in Matlab-Simulink

Modulation is generally nonlinear process, which modifies selected parameter (-s) of carrier signal according to modulation signal (-s). Can be divided in: Continuous analog harmonic carrier, analog modulation (e.g. AM, FM, PM) Continuous digital harmonic carrier, digital modulation (e.g. ASK, FSK, PSK, QPSK) Discrete pulse carrier, analog or digital modulation (e.g. PWM, PCM, DPCM ) Complex more carrier parameters are modified simultaneously (e.g. QAM, APSK ) The aim of the lab is to show the possibility of simulation of data communication in Matlab and to evaluate sensitivity of basic modulation types to different channel noise. Use the following modulation types: PM phase modulation DPCM differential pulse-coded modulation QAM quadrature amplitude modulation, changes carrier amplitude and phase simultaneously in specific number of states (16, 64, 256 ). More states provides higher data rate but also higher sensitivity to channel noise.

1) Start Matlab and run Communications Toolbox/Blockset library using commlib command from the Matlab command prompt. 2) Become acquainted with library block features: a) Comm Sources signal/noise sources b) Comm Sinks data presentation blocks c) Source Coding signal compressors and expanders, quantitizers d) Channel Coding channel coders and decoders e) Modulation digital and analog modulations f) Channels different channel models g) Synchronization PLL (phase lock loop) h) Utility supporting blocks integrators, VCO, detectors, counters, scramblers, shift registers 3) Run the DSP Blockset (digital signal processing) library using dsplib command from the Matlab command prompt. 4) Become acquainted with library block features: a) DSP sources basic signal sources, especially harmonic b) DSP Sinks signal presentation blocks, especially oscilloscope 5) Try the simulations in DEMO blocks and record the result while changing the important simulation parameters.

6) Simulate harmonic signal transmission over DPCM (blocks Sine Wave from DSP Sources, DPCM Encoder and Decoder, Mux, Scope). While setting block parameters use decimal point, Matlab doesnt accept comma (see Figures 1 and 2). a) Observe the distortion of the output signal in areas with different slope of the signal, explain the reason of thin phenomenon. b) Simulate transmission over the noisy communication channel of your choice, record results. 7) Simulate harmonic signal transmission over phase modulation system (PM modulator/demodulator baseband) a) Observe the signal at particular channel points. b) Find the time delay between transmitted and received signal. c) Simulate transmission over the noisy communication channel of your choice and evaluate quality of transmission. 8) Simulate transmission of random digital signal by means of QAM modulation (blocks Random-Integer Generator, Rectangular QAM modulator Baseband, AWGN Channel, Discrete-Time Eye and Scatter Diagrams, see parameters on page 2-77 of Comm. Blockset Manual) a) Become acquainted with data presentation in form of constellation diagram. b) Observe the symbols position within the constellation diagram in dependence on signal to noise ratio (SNR) and number of modulation states (M-ary number), evaluate the results.

Notes to the measurement:


Point 6:

Figure 1 DPCM simulation schema

Figure 2. DPCM functional blocks settings

Recommended values: Gaussian Noise Generator: Mean value mean value of noise, range from -1 to 1 Variance random noise variance, range from 1 to 10 Initial seed initial state, leave 0 Sample time sampling period, leave 0.01

Other noise generator can be used as well.

Point 7:

Figure 3. Simulation schema of phase modulation

Figure 4. Phase modulation functional blocks settings

Recommended values: Uniform Noise Generator: Noise lower bound minimum noise level, range from -0.5 to -5 Noise upper bound maximum noise level, range from 0.5 to 5 Initial seed initial state, leave 0 Sample time sampling period, leave 0.01

Other noise generator can be used as well.

Point 8:

Figure 5. Simulation schematics of QAM

Figure 6. QAM functional blocks settings

Recommended values: Rectangular QAM modulator: - M-ary number number of modulation states, set 2, 4, 8, 16, 32, 64, 128, 256 AWGN Chanel - Mode use SNR - SNR signal to noise ratio, range from 0 to 100 Random Integer Generator - M-ary number number of modulation states, set the same value as for QAM modulator

You might also like