ecoc measurements

This commit is contained in:
Silas Labor Zizou
2025-04-13 16:29:12 +02:00
parent 00f1c557c0
commit 0236103b13
19 changed files with 709 additions and 359 deletions

View File

@@ -15,7 +15,7 @@ function holdAndShowValue()
'ButtonPushedFcn', @(src, event) closeWindow());
% Initialize the timer
updateTimer = timer('ExecutionMode', 'fixedRate', 'Period', 1, ...
updateTimer = timer('ExecutionMode', 'fixedRate', 'Period', 0.1, ...
'TimerFcn', @(src, event) updatePowerValues());
% Start the timer

View File

@@ -1,9 +1,34 @@
% Define the precomp path
precomp_path = "C:\Users\sioe\Documents\MATLAB\imdd_simulation\projects\ECOC_2025\";
precomp_path = "D:\kiel_dsp\imdd_simulation\projects\HighSpeed_ETH";
precomp_filename = "lab_high_speed_nachtschichtmzm";
% precomp_filename = "lab_high_speed";
% precomp_filename = "lab_high_speed";
% Step 1: Find all valid files (assume .mat files for ChannelFreqResp)
fileList = dir(fullfile(precomp_path, '*.mat'));
fileNames = {fileList.name};
freqresp = ChannelFreqResp("Nacq",1024,"Navg",64,"Ncp",63,'f_ref',92e9);
freqresp.load('loadPath',precomp_path,'fileName',precomp_filename);
freqresp.plot();
% Check if any files found
if isempty(fileNames)
error('No valid .mat files found in the specified folder.');
end
% Step 2: Let user select which files to plot
[selection, ok] = listdlg( ...
'PromptString', 'Select Transfer Functions to Plot:', ...
'SelectionMode', 'multiple', ...
'ListString', fileNames);
% Check if user pressed OK
if ~ok || isempty(selection)
disp('No files selected. Exiting.');
return;
end
% Step 3: Loop over selected files and plot
for idx = selection
precomp_filename = erase(fileNames{idx}, '.mat'); % Remove .mat extension
freqresp = ChannelFreqResp("Nacq",1024,"Navg",64,"Ncp",63,'f_ref',92e9);
freqresp.load('loadPath', precomp_path, 'fileName', precomp_filename);
fprintf('Plotting: %s\n', precomp_filename);
freqresp.plot();
end