Impulse Response of National Instument's NI-5142 OSP Board
From Theory of Measurements Wiki
[edit]
National Instument's NI-5142 OSP Board
[edit]
Examples
[edit]
MATLAB Example with Synthetic data
% Define the input as a white noise
m=randn(100000,1);
% Give the filter function as exp(i\omega_ct)*boxcar(t)
t=0:0.512:16*pi;
filtteri1=exp(-sqrt(-1)*t);
filtteri=filtteri1(1:50);
filtteri1=[zeros(1,50),filtteri,zeros(1,200)];
% Create syntethic data
j=1;
for i=1:100:90000
meas(j) = sum(m(i:i+300-1).*filtteri1');
j = j+1;
end
% Create the theory matrix for the inversion with sample size l=400
j=1;
for i=1:100:90000
A2(j,:)=m(i:i+400-1);
j = j+1;
end
% Solve the problem for real and imaginary part separately
h1=flips;
flips_init(h1,400,1,'s');
flips_add(h1,A2,real(meas));
flips_solve(h1,'');
fsol1 = flips_get(h1,'sol');
flips_dispose(h1);
h1=flips;
flips_init(h1,400,1,'s');
flips_add(h1,A2,imag(meas));
flips_solve(h1,'');
ifsol1 = flips_get(h1,'sol');
flips_dispose(h1);
