test-bench-pd200/matlab/run_test.m

27 lines
610 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
2021-01-21 17:54:20 +01:00
pre_amp = struct('coupling', 'DC A', ...
'gain', 50000, ...
2021-01-21 11:15:32 +01:00
'LPF', '6dB 0.1Hz', ...
2021-01-21 17:54:20 +01:00
'input', 'SSI2V (20bits, +/- 10V)', ...
2021-01-21 11:15:32 +01:00
'HPF', '6dB 30kHz');
2021-01-19 17:16:05 +01:00
2021-01-21 14:54:44 +01:00
pd200 = struct('input', 'DAC', ...
2021-01-21 11:15:32 +01:00
'load', '3 uF');
2021-01-19 17:16:05 +01:00
2021-01-21 17:54:20 +01:00
notes = struct('pre_amp', pre_amp);
2021-01-19 17:16:05 +01:00
%% Save
2021-01-21 17:54:20 +01:00
save('mat/noise_preamp_5113_SSI2V.mat', 't', 'Vn', 'notes');