Commit c431687a authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter
Browse files

test: added output equlization filter to playbackrecord and mstf

parent 9b96001a
...@@ -531,6 +531,12 @@ classdef itaMSTF < itaMSPlaybackRecord ...@@ -531,6 +531,12 @@ classdef itaMSTF < itaMSPlaybackRecord
res = ita_dither(res,'type',this.ditherType,'nBits',this.nBits(1),'quiet',false); res = ita_dither(res,'type',this.ditherType,'nBits',this.nBits(1),'quiet',false);
end end
% if an outputequalization filter is set, convolve it with the
% excitation
if ~isempty(this.outputEqualizationFilters)
res = ita_convolve(res,this.outputEqualizationFilters,'cyclic',true);
end
end end
function set.compensation(this,value) function set.compensation(this,value)
......
...@@ -15,6 +15,8 @@ classdef itaMSPlaybackRecord < itaMSRecord ...@@ -15,6 +15,8 @@ classdef itaMSPlaybackRecord < itaMSRecord
mExcitation = []; mExcitation = [];
mOutputChannels = []; mOutputChannels = [];
mOutputMeasurementChain = itaMeasuringStation.loadCurrentOutputMC; %itaMeasurementChain('output'); mOutputMeasurementChain = itaMeasuringStation.loadCurrentOutputMC; %itaMeasurementChain('output');
mOutputEqualizationFilters = [];
end end
properties(Dependent = true, Hidden = false, Transient = true) properties(Dependent = true, Hidden = false, Transient = true)
...@@ -448,6 +450,12 @@ classdef itaMSPlaybackRecord < itaMSRecord ...@@ -448,6 +450,12 @@ classdef itaMSPlaybackRecord < itaMSRecord
function res = get_final_excitation(this) function res = get_final_excitation(this)
% get the corrected excitation (outputamplification) % get the corrected excitation (outputamplification)
res = this.raw_excitation * this.outputamplification_lin ; res = this.raw_excitation * this.outputamplification_lin ;
% if an outputequalization filter is set, convolve it with the
% excitation
if ~isempty(this.outputEqualizationFilters)
res = ita_convolve(res,this.outputEqualizationFilters,'cyclic',true);
end
end end
function set.outputChannels(this,value) function set.outputChannels(this,value)
...@@ -503,6 +511,16 @@ classdef itaMSPlaybackRecord < itaMSRecord ...@@ -503,6 +511,16 @@ classdef itaMSPlaybackRecord < itaMSRecord
res = this.mOutputMeasurementChain; res = this.mOutputMeasurementChain;
end end
function res = set.outputEqualizationFilters(this,value)
this.mOutputEqualizationFilters = value;
end
function res = get.outputEqualizationFilters(this)
res = this.mOutputEqualizationFilters;
end
%% commandline %% commandline
function str = commandline(this) function str = commandline(this)
% commandline - Generate comandline string. % commandline - Generate comandline string.
......
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