Dies und Das (MPI revisit)

This commit is contained in:
Silas Oettinghaus
2026-06-21 23:11:13 +02:00
parent 5c2e27687d
commit 3603fd7853
18 changed files with 656 additions and 209 deletions

View File

@@ -1,39 +1,44 @@
savePath = 'Z:\2025\ECOC Silas\ecoc_2025\';
databasePath = 'C:\Users\Silas\Documents\MATLAB\imdd_simulation\projects\ECOC_2025\';
database_name = 'ecoc2025_loops.db';
db = DBHandler("type","mysql");
% savePath = 'Z:\2025\ECOC Silas\ecoc_2025\';
% databasePath = 'C:\Users\Silas\Documents\MATLAB\imdd_simulation\projects\ECOC_2025\';
% database_name = 'ecoc2025_loops.db';
% db = DBHandler("type","mysql");
% db = DBHandler("pathToDB", [databasePath, database_name],"type","sqlite");
dsp_options.append_to_db = 0;
dsp_options.max_occurences = 15;
dsp_options.database_type = 'mysql';
dsp_options.dataBase = 'labor';
dsp_options.storage_path = 'W:\labdata\ECOC Silas\ecoc_2025\';
dsp_options.server = "192.168.178.192";% "134.245.243.254";
dsp_options.user = "silas";
dsp_options.password = "silas";
filterParams = db.tables;
% filterParams.Configurations = struct('run_id', 4001);
filterParams.Configurations = struct( ...
'symbolrate', 112e9, ... %[224,336,360,390,420,448]
'fiber_length', 0, ...
'db_mode', '"no_db"', ...
'interference_attenuation', [], ...
'interference_path_length', [], ...
'is_mpi', 1, ...
'pam_level', 4, ...
'wavelength', 1310, ...
'precomp_amp', [], ...
'signal_attenuation', [], ...
'v_awg', [], ...
'v_bias', 2.65 ...
);
db = DBHandler("dataBase", [dsp_options.dataBase],...
"type", dsp_options.database_type,...
"server", dsp_options.server,...
"user", dsp_options.user, "password", dsp_options.password);
selectedFields = {'Runs.run_id','Runs.loop_id','Runs.tx_bits_path','Runs.tx_signal_path','Runs.tx_symbols_path','Runs.rx_sync_path','Runs.rx_raw_path',...
'Configurations.db_mode','Configurations.pam_level','Configurations.bitrate','Configurations.symbolrate','Configurations.fiber_length','Configurations.wavelength','Configurations.precomp_amp','Measurements.power_rop','Configurations.v_bias',...
'Configurations.interference_attenuation', 'Configurations.interference_path_length'};
fp = QueryFilter();
fp.where('Runs', 'symbolrate', 'EQUALS', 112e9); % [224,336,360,390,420,448]
fp.where('Runs', 'fiber_length', 'EQUALS', 0);
fp.where('Runs', 'db_mode', 'EQUALS', '"no_db"');
% fp.where('Runs', 'interference_attenuation', 'EQUALS', []);
% fp.where('Runs', 'interference_path_length', 'EQUALS', []);
fp.where('Runs', 'is_mpi', 'EQUALS', 1);
fp.where('Runs', 'pam_level', 'EQUALS', 4);
fp.where('Runs', 'wavelength', 'EQUALS', 1310);
% fp.where('Runs', 'precomp_amp', 'EQUALS', []);
% fp.where('Runs', 'signal_attenuation', 'EQUALS', []);
% fp.where('Runs', 'v_awg', 'EQUALS', []);
fp.where('Runs', 'v_bias', 'EQUALS', 2.65);
[dataTable,sql_query] = db.queryDB(filterParams, selectedFields);
[dataTable, ~] = db.queryDB(fp, db.getTableFieldNames('Runs'));
% dataTable(dataTable.loop_id<200,:) = [];
num_occ = 15;
run_par = true;
run_par = false;
run_id = dataTable.run_id;
params = struct();
@@ -57,6 +62,7 @@ params.smoothing_buffer_length = 0;
params.smoothing_buffer_update = 0;
params.mu_dc = 0.005;
futures_list = parallel.FevalFuture.empty();
for id = 1:length(dataTable.run_id)
run_id = dataTable.run_id(id);