psk and ask

3
INDEX S No. Name of experiment Page No. Sign. 1. To study fiber optics communication system 1 2. Setting up fiber optics analog link 5 3. Setting up fiber optics digital link 7 4. Measurement of Propagation loss using Optical Power Meter 8 5. Computer to Computer communication using RS232 interface via Fiber Optic Link 9 6. Simulation of ASK using MATLAB 10 7. Simulation of ASK using MATLAB 11

Upload: siddhant-agarwal

Post on 06-Sep-2015

229 views

Category:

Documents


5 download

DESCRIPTION

MATLAB programs and study about ASK and PSK functions.

TRANSCRIPT

  • INDEX

    S No. Name of experiment Page No. Sign.

    1. To study fiber optics

    communication system 1

    2. Setting up fiber optics analog link 5

    3. Setting up fiber optics digital link 7

    4. Measurement of Propagation loss

    using Optical Power Meter 8

    5.

    Computer to Computer

    communication using RS232

    interface via Fiber Optic Link

    9

    6. Simulation of ASK using MATLAB 10

    7. Simulation of ASK using MATLAB 11

  • Experiment:- 06

    Objective:- Simulation of ASK using MATLAB

    Code:-

    clear all; clc; close all; f1=input('Enter the frequency of the carrier : '); f2=input('Enter the frequency of the pulse : '); a=3;%Amplitude t=0:0.001:1; x=a*sin(2*pi*f1*t); %Carrier sine wave u=a/2*square(2*pi*f2*t)+(a/2); %Square wave v=x.*u; subplot(3,1,1); plot(t,x); xlabel('Time'); ylabel('Amplitude'); title('Carrier'); grid on; subplot(3,1,2); plot(t,u); xlabel('Time'); ylabel('Amplitude'); title('Square Pulse'); grid on; subplot(3,1,3); plot(t,v); xlabel('Time'); ylabel('Amplitude'); title('Ask Signal'); grid on;

  • Experiment:- 07

    Objective:- Simulation of PSK using MATLAB

    Code:-

    clear all; clc; close all; %set(0,'default','linewidth',2); f1=input('Enter the frequency of the carrier : '); f2=input('Enter the frequency of the pulse : '); a=5;%Amplitude t=0:0.001:1; x=a*sin(2*pi*f1*t); %Carrier sine wave subplot(3,1,1); plot(t,x); xlabel('Time'); ylabel('Amplitude'); title('Carrier'); grid on; u=square(2*pi*f2*t); %Message signal subplot(3,1,2); plot(t,u); xlabel('Time'); ylabel('Amplitude'); title('Message Signal'); grid on; v=x.*u; subplot(3,1,3); plot(t,v); %axis([01-66]); xlabel('Time'); ylabel('Amplitude'); title('Psk Signal'); grid on;