test-bench-pd200/matlab/run_test.m

27 lines
614 B
Mathematica
Raw Normal View History

2021-01-19 17:16:05 +01:00
%%
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', ...
2021-01-21 11:15:32 +01:00
'gain', 1000, ...
'LPF', '6dB 0.1Hz', ...
'input', 'PD200', ...
'HPF', '6dB 30kHz');
2021-01-19 17:16:05 +01:00
pd200 = struct('input', '50 Ohm', ...
2021-01-21 11:15:32 +01:00
'load', '3 uF');
2021-01-19 17:16:05 +01:00
notes = struct('pre_amp', pre_amp, 'pd_200', pd200);
%% Save
2021-01-21 11:42:19 +01:00
save('mat/noise_PD200_6_3uF_warmup.mat', 't', 'Vn', 'notes');