Bald fertig für richtige Nutzung - Move_it vergleich fertig
Complete Checkup with Move_it: this framework is an almost perfect reproduction.
This commit is contained in:
@@ -20,6 +20,8 @@ classdef Scope
|
||||
filtertype
|
||||
lpf_bw
|
||||
|
||||
block_dc
|
||||
|
||||
%during construction
|
||||
|
||||
%during process
|
||||
@@ -47,24 +49,17 @@ classdef Scope
|
||||
|
||||
options.filtertype = filtertypes.bessel_bilin;
|
||||
options.lpf_bw = 120e9;
|
||||
|
||||
options.block_dc = 1;
|
||||
end
|
||||
|
||||
obj.fsimu = options.fsimu;
|
||||
obj.fadc = options.fadc;
|
||||
obj.adcresolution = options.adcresolution;
|
||||
obj.quantbuffer = options.quantbuffer;
|
||||
fn = fieldnames(options);
|
||||
for n = 1:numel(fn)
|
||||
try
|
||||
obj.(fn{n}) = options.(fn{n});
|
||||
end
|
||||
end
|
||||
|
||||
obj.rand_samplingdelay = options.rand_samplingdelay; % use a randomized sample delay INSTEAD of samplingdelay
|
||||
obj.samplingdelay = options.samplingdelay; %specifiy a sampling delay
|
||||
|
||||
obj.freq_offset = options.freq_offset; %offset of the sampler
|
||||
obj.samp_jitter = options.samp_jitter; %include jitter in [s]
|
||||
|
||||
obj.fixed_delay = options.fixed_delay; %fix the delay of the filter or use minimal delay for kausal system
|
||||
obj.delay = options.delay; %specify a fixed delay of the filter
|
||||
|
||||
obj.filtertype = options.filtertype;
|
||||
obj.lpf_bw = options.lpf_bw;
|
||||
|
||||
end
|
||||
|
||||
@@ -91,14 +86,17 @@ classdef Scope
|
||||
% Detailed explanation goes here
|
||||
|
||||
% sample signal
|
||||
% TODO: implement and test the delays. Also look for delay of
|
||||
% lpf filter
|
||||
%yout = obj.sampleSignal(xin);
|
||||
% TODO: implement and test the delays.
|
||||
|
||||
% resample
|
||||
yout = resample(xin,obj.fadc,obj.fsimu);
|
||||
|
||||
% quantize signal
|
||||
yout = obj.quantize(yout);
|
||||
|
||||
if obj.block_dc
|
||||
yout = yout-mean(yout,1);
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user