Added:
- Class folder 'Timing Recovery' with different timing recoveries - Minimal example for the timing recovery on the FSO data - New evaluation scripts in the FSO project folder
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
%%
|
||||
ffe_start = 0;
|
||||
ffe_step = 5;
|
||||
ffe_end = 30;
|
||||
ffe_first_order = ffe_start:ffe_step:ffe_end;
|
||||
|
||||
current = 225:10:285;
|
||||
current = string(current);
|
||||
power = [28.02, 33.2, 37.5, 42.3, 46.3, 49.3, 53.4];
|
||||
power = string(power);
|
||||
num_pf_coeff = 4;
|
||||
% taps_ffe = [300, 0, 0];
|
||||
taps_dfe = [0, 0, 0];
|
||||
M = 4;
|
||||
trlength = 4096*4;
|
||||
x = 225:10:285;
|
||||
BER_PAM_4 = [];
|
||||
|
||||
for i = 1:length(ffe_first_order)
|
||||
for eq_method = 2
|
||||
for j = 4
|
||||
BER_run = first_analysis_ber(current(j), power(j), num_pf_coeff, [300, 15, ffe_first_order(i)], taps_dfe, M, trlength, eq_method);
|
||||
BER_PAM_4 = [BER_PAM_4, BER_run];
|
||||
end
|
||||
end
|
||||
end
|
||||
save('C:\Users\magf\Desktop\Desktop\MATLAB-Zeugs\Silas DSP\imdd_simulation\projects\FSO_transmission\BER_PAM_4_FFE_Second_Order_Tap_Sweep.mat', 'ffe_first_order', 'BER_PAM_4')
|
||||
BER_PAM_4 = [];
|
||||
|
||||
%%
|
||||
BER = load('C:\Users\magf\Desktop\Desktop\MATLAB-Zeugs\Silas DSP\imdd_simulation\projects\FSO_transmission\BER_PAM_4_FFE_Second_Order_Tap_Sweep.mat');
|
||||
BER = BER.BER_PAM_4;
|
||||
|
||||
figure(202120)
|
||||
plot(ffe_first_order, BER, '-o','LineWidth',1.75);
|
||||
hold on
|
||||
|
||||
h1 = yline(2e-2, ':k', 'LineWidth',1.5);
|
||||
h2 = yline(3.8e-3,':b', 'LineWidth',1.5);
|
||||
h3 = yline(4.85e-3,':g', 'LineWidth',1.5);
|
||||
h4 = yline(2.2e-4,':r', 'LineWidth',1.5);
|
||||
|
||||
% FEC Labels direkt im Plot
|
||||
text(286,2.2e-2,'o-FEC','Color','k','FontSize', 14, 'Interpreter','latex')
|
||||
text(285,3.3e-3,'HD-FEC','Color','b','FontSize', 14, 'Interpreter','latex')
|
||||
text(282.5,5.4e-3,'KP4+Hamming','Color','g','FontSize', 14,'Interpreter','latex')
|
||||
text(287,2.4e-4,'KP4','Color','r','FontSize', 14,'Interpreter','latex')
|
||||
|
||||
xlabel('Number of DFE First Order Taps', 'Interpreter','latex')
|
||||
ylabel('BER', 'Interpreter','latex')
|
||||
% title('BER for PAM-4', 'Interpreter','latex')
|
||||
|
||||
grid minor
|
||||
% ylim([1e-4 5e-1])
|
||||
set(gca,'YScale','log')
|
||||
% beautifyBERplot
|
||||
hold off
|
||||
Reference in New Issue
Block a user