Commit 378c5d51 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

harmonize input and output behavior

added display of change in sensitivity in dB
parent 11b07562
......@@ -13,7 +13,13 @@ thisFuncStr = [upper(mfilename) ':']; % Use to show warnings or infos in th
%% Reference
MCE = MC(1).elements(element_idx);
if ~exist('oldSens','var')
oldSens = MCE.sensitivity_silent;
old_sens_str = '';
else
if ~isnan(double(oldSens)) && isfinite(double(oldSens))
old_sens_str = [' {old: ' num2str(oldSens) '; change: ' num2str(round(20.*log10(double(MCE.sensitivity)/double(oldSens)),3)) 'dB}'];
else
old_sens_str = [' {old: ' num2str(oldSens) '; change: N/A}'];
end
end
hw_ch = MC(1).hardware_channel;
......@@ -54,8 +60,6 @@ if exist('oldReference','var')
sInit.Reference = oldReference;
end
old_sens_str = [' {old: ' num2str(oldSens) '}'];
%% GUI
pList = [];
......
......@@ -7,13 +7,6 @@ function MS = ita_measurement_chain_output_calibration(MS,input_chain_number,ele
% You can find the license for this m-file in the application folder.
% </ITA-Toolbox>
if ~exist('old_sens','var')
old_sens_str = '';
else
old_sens_str = [' {old: ' num2str(old_sens) '}'];
end
sensFactor = 1;
thisFuncStr = [upper(mfilename) '::'];
% for ele_idx = 1:length(MS.outputMeasurementChain)
......@@ -25,6 +18,17 @@ if MC.elements(ele_idx).calibrated ~= -1
pListExtra = {};
MCE = MC.elements(ele_idx);
if ~exist('old_sens','var')
old_sens_str = '';
else
if ~isnan(double(old_sens)) && isfinite(double(old_sens))
old_sens_str = [' {old: ' num2str(old_sens) '; change: ' num2str(round(20.*log10(double(MCE.sensitivity)/double(old_sens)),3)) 'dB}'];
else
old_sens_str = [' {old: ' num2str(old_sens) '; change: N/A}'];
end
end
if any(strfind(lower(MCE.name),'robo')) || any(strfind(lower(MCE.type),'robo')) || ...
any(strfind(lower(MCE.name),'modulita')) || any(strfind(lower(MCE.type),'modulita')) || ...
any(strfind(lower(MCE.name),'aurelio')) || any(strfind(lower(MCE.type),'aurelio'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment