Noise measurement
This commit is contained in:
parent
8650bb266e
commit
edba0b35f5
21
matlab/analysis.m
Normal file
21
matlab/analysis.m
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
|
||||
pd200_7 = load('mat/noise_PD200_7.mat', 't', 'Vn', 'notes');
|
||||
|
||||
Ts = t(2)-t(1);
|
||||
|
||||
pd200_7.Vn = pd200_7.Vn/pd200_7.notes.pre_amp.gain;
|
||||
|
||||
% Peak to peak in mV
|
||||
1000*(max(Vn)-min(Vn))
|
||||
|
||||
% RMS in uV
|
||||
1e6*rms(Vn)
|
||||
|
||||
win = hann(ceil(length(Vn)/20));
|
||||
[pxx, f] = pwelch(Vn, win, [], [], 1/Ts);
|
||||
|
||||
figure;
|
||||
plot(f, sqrt(pxx));
|
||||
set(gca, 'xscale', 'log');
|
||||
set(gca, 'yscale', 'log');
|
BIN
matlab/mat/noise_PD200_1.mat
Normal file
BIN
matlab/mat/noise_PD200_1.mat
Normal file
Binary file not shown.
BIN
matlab/mat/noise_PD200_2.mat
Normal file
BIN
matlab/mat/noise_PD200_2.mat
Normal file
Binary file not shown.
BIN
matlab/mat/noise_PD200_3.mat
Normal file
BIN
matlab/mat/noise_PD200_3.mat
Normal file
Binary file not shown.
BIN
matlab/mat/noise_PD200_4.mat
Normal file
BIN
matlab/mat/noise_PD200_4.mat
Normal file
Binary file not shown.
BIN
matlab/mat/noise_PD200_5.mat
Normal file
BIN
matlab/mat/noise_PD200_5.mat
Normal file
Binary file not shown.
BIN
matlab/mat/noise_PD200_6.mat
Normal file
BIN
matlab/mat/noise_PD200_6.mat
Normal file
Binary file not shown.
BIN
matlab/mat/noise_PD200_7.mat
Normal file
BIN
matlab/mat/noise_PD200_7.mat
Normal file
Binary file not shown.
26
matlab/run_test.m
Normal file
26
matlab/run_test.m
Normal file
@ -0,0 +1,26 @@
|
||||
%%
|
||||
tg = slrt;
|
||||
|
||||
f = SimulinkRealTime.openFTP(tg);
|
||||
mget(f, 'data/data.dat');
|
||||
close(f);
|
||||
|
||||
%% Convert the Data
|
||||
data = SimulinkRealTime.utils.getFileScopeData('data/data.dat').data;
|
||||
|
||||
Vn = data(:, 1);
|
||||
t = data(:, end);
|
||||
|
||||
%% Notes
|
||||
pre_amp = struct('coupling', 'DC A-B', ...
|
||||
'gain', 1000, ...
|
||||
'LPF', '12dB 0.1Hz', ...
|
||||
'HPF', '1MHz');
|
||||
|
||||
pd200 = struct('input', '50 Ohm', ...
|
||||
'offset', 0.2);
|
||||
|
||||
notes = struct('pre_amp', pre_amp, 'pd_200', pd200);
|
||||
|
||||
%% Save
|
||||
save('mat/noise_PD200_6.mat', 't', 'Vn', 'notes');
|
2
matlab/setup.m
Normal file
2
matlab/setup.m
Normal file
@ -0,0 +1,2 @@
|
||||
Fs = 20e3; % [Hz]
|
||||
Ts = 1/Fs; % [s]
|
BIN
matlab/speedgoat_IO318_100k_CI_01585.mat
Normal file
BIN
matlab/speedgoat_IO318_100k_CI_01585.mat
Normal file
Binary file not shown.
BIN
matlab/test_bench_pd200_noise.slx
Normal file
BIN
matlab/test_bench_pd200_noise.slx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user