commit old stuff from lab

This commit is contained in:
Silas Labor Zizou
2025-04-16 09:55:32 +02:00
28 changed files with 728 additions and 60 deletions

View File

@@ -13,42 +13,45 @@ end
database_name = 'ecoc2025_loops.db';
if ~exist('db','var')
db = DBHandler("pathToDB", [databasePath, database_name]);
end
db = DBHandler("pathToDB", [databasePath, database_name]);
conf = db.tables.Configurations;
% conf = db.tables.Configurations;
if ~exist('confPrev','var')
confPrev = db.tables.Configurations;
confPrev = conf;
end
awg_upload_required = 1; %still uploads every first round
subimt_DSP = 1;
recordlen = 5000000;
sequence_order = 19;
n_recording = 2; % Or any number you want
recordlen = 1000000;
sequence_order = 17;
n_recording = 1; % Or any number you want
conf=rmfield(conf,"interference_attenuation");
conf=rmfield(conf,"symbolrate");
conf=rmfield(conf,"pam_level");
% Define vector parameters directly in conf:
conf.unique_elab_id = "20250408-842b0a3078172b48dd032795226fbe683190afc4";
conf.db_mode = db_mode.no_db;
conf.pulsef_alpha = 0.2;
conf.v_bias = 2.65;
conf.v_awg = 0.9;
conf.v_awg = 0.85;
conf.precomp_amp = -64; %-64
conf.wavelength = 1310;
conf.laser_power = 11;
conf.fiber_length = 0;
conf.pd_in_desired = 9;
conf.is_mpi = 1;
conf.is_mpi = true;
conf.signal_attenuation = 0;
conf.interference_path_length = 300; %m
conf.interference_attenuation = [0:2:30,40];
conf.pam_level = [4,6,8];
conf.symbolrate = [56,72,96,112].*1e9;
conf.bitrate = conf.symbolrate .* floor(log2(6)*10)/10;
conf.interference_path_length = 20; %m
conf.interference_attenuation = 10;%[0:2:30,40];
conf.pam_level = 4;%[2,4,6,8];
conf.symbolrate = [112].*1e9;
conf.pam_source = [];
if conf.is_mpi
current_folder = ['mpi_',num2str(conf.interference_path_length),'m_pam',num2str(conf.pam_level)];
current_folder = ['test_mpi_opti_',num2str(conf.interference_path_length),'m_pam',num2str(conf.pam_level)];
else
current_folder = 'testing';
end
@@ -106,10 +109,23 @@ else
end
end
fprintf('Running measurement: %s\n', strjoin(paramDisplayCell, ', '));
fprintf('Running measurement: %s ---> %d of %d done \n ', strjoin(paramDisplayCell, ', '),runIdx, totalRuns);
if confRequest.pam_level == 2
confRequest.symbolrate = 112e9;
elseif confRequest.pam_level == 4
confRequest.symbolrate = 112e9;
elseif confRequest.pam_level == 6
confRequest.symbolrate = 96e9;
elseif confRequest.pam_level == 8
confRequest.symbolrate = 72e9;
end
confRequest.bitrate = confRequest.symbolrate * floor(log2(confRequest.pam_level) * 10) / 10;
% measure_run("config",confRun,"parallel",parallel_dsp,"max_occurences",max_occurences);
measure_run_script;
measure_run_script;
end
end