test-bench-pd200/matlab/run_test.m
2021-01-19 17:16:05 +01:00

26 lines
562 B
Matlab

%%
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');