Index: S No. Name of Experiment Page No. Sign

You might also like

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

INDEX

S No.

Name of experiment

Page No.

1.

To study fiber optics


communication system

2.

Setting up fiber optics analog link

3.

Setting up fiber optics digital link

4.

Measurement of Propagation loss


using Optical Power Meter

5.

Computer to Computer
communication using RS232
interface via Fiber Optic Link

6.

Simulation of ASK using MATLAB

10

7.

Simulation of ASK using MATLAB

11

Sign.

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;

You might also like