Minimal Working - seems too good?!
This commit is contained in:
@@ -68,18 +68,32 @@ classdef Scope
|
||||
|
||||
end
|
||||
|
||||
function yout = process(obj,xin)
|
||||
%METHOD1 Summary of this method goes here
|
||||
% Detailed explanation goes here
|
||||
function signalclass_out = process(obj,signalclass_in)
|
||||
|
||||
% apply LPF
|
||||
lpf = Filter('filtdegree',4,"f_cutoff",obj.lpf_bw,"fsamp",obj.fsimu,"filterType",obj.filtertype);
|
||||
yout = lpf.process(xin);
|
||||
signalclass_in = lpf.process(signalclass_in);
|
||||
|
||||
% actual processing of the signal
|
||||
signalclass_in.signal = obj.process_(signalclass_in.signal);
|
||||
|
||||
% append to logbook
|
||||
lbdesc = ['Scope '];
|
||||
signalclass_in = signalclass_in.logbookentry(lbdesc);
|
||||
|
||||
% write to output
|
||||
signalclass_out = signalclass_in;
|
||||
|
||||
end
|
||||
|
||||
function yout = process_(obj,xin)
|
||||
%METHOD1 Summary of this method goes here
|
||||
% Detailed explanation goes here
|
||||
|
||||
% sample signal
|
||||
% TODO: implement and test the delays. Also look for delay of
|
||||
% lpf filter
|
||||
yout = obj.sampleSignal(yout);
|
||||
yout = obj.sampleSignal(xin);
|
||||
|
||||
% quantize signal
|
||||
yout = obj.quantize(yout);
|
||||
@@ -118,7 +132,7 @@ classdef Scope
|
||||
%calc number of samples after down-sampling no offset
|
||||
obj.Nout = ceil((Tsig - fracdelay)*obj.fadc) ;
|
||||
|
||||
%build a jitter vector
|
||||
%build a jitter vector
|
||||
jitvec = obj.buildSamplingJitterVector();
|
||||
|
||||
% Create the index vector of the sampling instances for the real and imaginary part
|
||||
|
||||
Reference in New Issue
Block a user